[hipl-commit] [trunk] Rev 4081: Do not add -lc to CFLAGS on OpenWrt.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Mon, 29 Mar 2010 22:53:11 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 29/03/2010 at 22:53:11
Revision: 4081
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Do not add -lc to CFLAGS on OpenWrt.
  
  -lc is a linker flag, not a compiler flag. Whatever problem this worked
  around at some point, it causes other problems, e.g. during checkheaders.

Modified:
  M  configure.ac

=== modified file 'configure.ac'
--- configure.ac        2010-03-26 13:15:30 +0000
+++ configure.ac        2010-03-29 19:52:05 +0000
@@ -217,7 +217,6 @@
                [ac_cv_use_openwrt=no])
 if test x"$ac_cv_use_openwrt" = x"yes"; then
     AC_DEFINE(CONFIG_HIP_OPENWRT)
-    AC_SUBST(OPENWRT_CFLAGS, "-lc")
     AH_TEMPLATE(CONFIG_HIP_OPENWRT,
                 [Defined to 1 if openwrt support is enabled.])
     if test x"$TARGET" = x"MIPS_LINUX"; then
@@ -389,7 +388,7 @@
 fi
 
 # Set default AM_CFLAGS for the complete project.
-AC_SUBST(AM_CFLAGS, "-std=c99 -Werror -Wall -Wredundant-decls 
-Wdisabled-optimization -Wundef -Wstrict-prototypes 
-Wno-deprecated-declarations -fno-strict-aliasing $OPENWRT_CFLAGS $MAEMO_CFLAGS 
$GPROF_CFLAGS")
+AC_SUBST(AM_CFLAGS, "-std=c99 -Werror -Wall -Wredundant-decls 
-Wdisabled-optimization -Wundef -Wstrict-prototypes 
-Wno-deprecated-declarations -fno-strict-aliasing $MAEMO_CFLAGS $GPROF_CFLAGS")
 
 # Set the preprocessor flags for the entire project
 AC_SUBST(AM_CPPFLAGS, "-D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 
$MAEMO_CPPFLAGS")

Other related posts:

  • » [hipl-commit] [trunk] Rev 4081: Do not add -lc to CFLAGS on OpenWrt. - Diego Biurrun