diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-05 01:00:47 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-01-05 01:00:47 +0000 |
commit | 6f30fa853b78203c3a03c91470b7d2d12f46955a (patch) | |
tree | d9a012632fe67c0ac7114f56ac9637a15687fe29 /configure | |
parent | b371dc594b75d739aa5b6bcf48423b401265dc68 (diff) |
Untangle the various CFLAGS/LDFLAGS flavours. Allow overriding the
optional flags at make time.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2289 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -103,7 +103,7 @@ targetos=`uname -s` case $targetos in CYGWIN*) mingw32="yes" -CFLAGS="-O2 -mno-cygwin" +OS_CFLAGS="-mno-cygwin" ;; MINGW32*) mingw32="yes" @@ -126,6 +126,7 @@ oss="yes" Darwin) bsd="yes" darwin="yes" +OS_CFLAGS="-mdynamic-no-pic" ;; SunOS) solaris="yes" @@ -243,6 +244,10 @@ for opt do esac done +# default flags for all hosts +CFLAGS="$CFLAGS -Wall -O2 -g -fno-strict-aliasing" +LDFLAGS="$LDFLAGS -g" + if test x"$show_help" = x"yes" ; then cat << EOF @@ -605,6 +610,7 @@ fi echo "HOST_CC=$host_cc" >> $config_mak echo "AR=$ar" >> $config_mak echo "STRIP=$strip -s -R .comment -R .note" >> $config_mak +echo "OS_CFLAGS=$OS_CFLAGS" >> $config_mak echo "CFLAGS=$CFLAGS" >> $config_mak echo "LDFLAGS=$LDFLAGS" >> $config_mak echo "EXESUF=$EXESUF" >> $config_mak |