summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 4c742f500f..4910dcb000 100755
--- a/tools/configure
+++ b/tools/configure
@@ -237,6 +237,9 @@ simcc () {
237 GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` 237 GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
238 238
239 GCCOPTS="$GCCOPTS -fno-builtin -g" 239 GCCOPTS="$GCCOPTS -fno-builtin -g"
240 # Some linux setups like to warn about unused results. They are correct,
241 # but cleaning this up is a lot of work.
242 GCCOPTS="$GCCOPTS -Wno-unused-result"
240 GCCOPTIMIZE='' 243 GCCOPTIMIZE=''
241 LDOPTS="$LDOPTS -lm" # button-sdl.c uses sqrt() 244 LDOPTS="$LDOPTS -lm" # button-sdl.c uses sqrt()
242 sigaltstack="" 245 sigaltstack=""
@@ -4189,6 +4192,12 @@ else
4189 GCCOPTS="$GCCOPTS -Wno-override-init" 4192 GCCOPTS="$GCCOPTS -Wno-override-init"
4190 fi 4193 fi
4191 4194
4195 if test "$gccnum" -ge "601"; then
4196 # gcc 6 adds a lot of warnings that while useful are too time-consuming
4197 # to clean up right away
4198 GCCOPTS="$GCCOPTS -Wno-shift-negative-value -Wno-unused-const-variable -Wno-nonnull-compare -Wno-tautological-compare"
4199 fi
4200
4192 case $prefix in 4201 case $prefix in
4193 ""|"$CROSS_COMPILE") 4202 ""|"$CROSS_COMPILE")
4194 # simulator 4203 # simulator