comparison configure @ 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 fe379c71cb53
children 5a42bf9bcd84
comparison
equal deleted inserted replaced
29130:33956c5f5005 29131:df0f3be3c12f
1428 extra_ldflags="$extra_ldflags -L/usr/pkg/lib" 1428 extra_ldflags="$extra_ldflags -L/usr/pkg/lib"
1429 extra_cflags="$extra_cflags -I/usr/pkg/include" 1429 extra_cflags="$extra_cflags -I/usr/pkg/include"
1430 fi 1430 fi
1431 1431
1432 if darwin; then 1432 if darwin; then
1433 CFLAGS="$CFLAGS -mdynamic-no-pic -falign-loops=16 -shared-libgcc" 1433 extra_cflags="-mdynamic-no-pic -falign-loops=16 -shared-libgcc $extra_cflags"
1434 _timer=timer-darwin.c 1434 _timer=timer-darwin.c
1435 fi 1435 fi
1436 1436
1437 if aix ; then 1437 if aix ; then
1438 extra_ldflags="$extra_ldflags -lC" 1438 extra_ldflags="$extra_ldflags -lC"
1463 if amigaos ; then 1463 if amigaos ; then
1464 _select=no 1464 _select=no
1465 _sighandler=no 1465 _sighandler=no
1466 _stream_cache=no 1466 _stream_cache=no
1467 def_stream_cache="#undef CONFIG_STREAM_CACHE" 1467 def_stream_cache="#undef CONFIG_STREAM_CACHE"
1468 CFLAGS="$CFLAGS -DNEWLIB -D__USE_INLINE__" 1468 extra_cflags="-DNEWLIB -D__USE_INLINE__ $extra_cflags"
1469 fi 1469 fi
1470 1470
1471 if qnx ; then 1471 if qnx ; then
1472 extra_ldflags="$extra_ldflags -lph" 1472 extra_ldflags="$extra_ldflags -lph"
1473 fi 1473 fi