[hipl-commit] [tiny] Rev 3522: Fixed compile issues with test/modularization.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Mon, 8 Feb 2010 17:43:13 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Mon Feb 08 16:40:08 2010 +0100
Revision: 3522
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Fixed compile issues with test/modularization.
  
  Now the test program compiles correctly. The errors occured because of 
missing LDADD commands in Makefile.am. There are dependencies between 
lib/core/libhipcore.la and lib/tool/libhiptool.la and 
lib/performance/libperformance.la. Added all these libs to 
test_modularization_LDADD.

Modified:
  M  Makefile.am
  M  configure.ac
  M  test/modularization.c

=== modified file 'Makefile.am'
--- Makefile.am 2010-02-06 15:10:02 +0000
+++ Makefile.am 2010-02-08 15:40:08 +0000
@@ -289,8 +289,14 @@
                             lib/performance/libperformance.la
 endif
 
-test_modularization_LDADD = lib/core/libhipcore.la \
-                            lib/modularization/libmodularization.la
+test_modularization_LDADD = lib/modularization/libmodularization.la \
+                            lib/core/libhipcore.la \
+                            lib/tool/libhiptool.la
+
+if HIP_PERFORMANCE
+test_modularization_LDADD += lib/performance/libperformance.la
+endif
+                            
 
 tools_hipconf_LDADD = lib/core/libhipcore.la \
                       lib/tool/libhiptool.la \

=== modified file 'configure.ac'
--- configure.ac        2010-02-04 17:28:55 +0000
+++ configure.ac        2010-02-08 15:40:08 +0000
@@ -309,7 +309,7 @@
 AM_CONDITIONAL(HIP_DEMO, test x"$ac_cv_use_demo" = x"yes")
 
 # Set default AM_CFLAGS for the complete project.
-AC_SUBST(AM_CFLAGS, "-Werror -Wredundant-decls -Wall -Wcast-align 
-Wdisabled-optimization -Wundef -Wstrict-prototypes 
-Wno-deprecated-declarations -fno-strict-aliasing $OPENWRT_CFLAGS $GPROF_CFLAGS 
-D_GNU_SOURCE")
+AC_SUBST(AM_CFLAGS, "-Werror -Wredundant-decls -Wall -Wcast-align 
-Wdisabled-optimization -Wundef -Wstrict-prototypes 
-Wno-deprecated-declarations -fno-strict-aliasing $OPENWRT_CFLAGS 
$GPROF_CFLAGS")
 
 # Parse modules directory
 echo ""

=== modified file 'test/modularization.c'
--- test/modularization.c       2010-02-08 12:19:13 +0000
+++ test/modularization.c       2010-02-08 15:40:08 +0000
@@ -25,9 +25,6 @@
 
 int main(void)
 {
-#if 0
-    void *tmp;
-    tmp = hip_init_state();
     struct ha_state ha_state_item1;
     struct update_state update_state_item1;
     struct ha_state ha_state_item2;
@@ -78,6 +75,6 @@
 
     hip_free_state(entry1);
     hip_free_state(entry2);
-#endif
+
     return 0;
 }

Other related posts:

  • » [hipl-commit] [tiny] Rev 3522: Fixed compile issues with test/modularization. - Tim Just