changeset 29131:df0f3be3c12f

Use extra_cflags variable instead of CFLAGS to add system-specific CFLAGS. Otherwise the CFLAGS warning gets triggered and necessary CFLAGS are not set.
author diego
date Sun, 12 Apr 2009 17:07:30 +0000
parents 33956c5f5005
children b226cc9b492c
files configure
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Apr 11 13:51:02 2009 +0000
+++ b/configure	Sun Apr 12 17:07:30 2009 +0000
@@ -1430,7 +1430,7 @@
 fi
 
 if darwin; then
-  CFLAGS="$CFLAGS -mdynamic-no-pic -falign-loops=16 -shared-libgcc"
+  extra_cflags="-mdynamic-no-pic -falign-loops=16 -shared-libgcc $extra_cflags"
   _timer=timer-darwin.c
 fi
 
@@ -1465,7 +1465,7 @@
   _sighandler=no
   _stream_cache=no
   def_stream_cache="#undef CONFIG_STREAM_CACHE"
-  CFLAGS="$CFLAGS -DNEWLIB -D__USE_INLINE__"
+  extra_cflags="-DNEWLIB -D__USE_INLINE__ $extra_cflags"
 fi
 
 if qnx ; then