Disable _FORTIFY_SOURCE for the simulator

Most of our code was written to be efficient. While adding return value
checks everywhere would be a good idea in theory, it would increase binsize
a lot, and #ifdeffing those checks for sim-only is not doable. Disabling
_FORTIFY_SOURCE makes the warning disappear for innocent commits that
can't be blamed for them.

Change-Id: I8171869a140580cbf89f39776856eb3f65641366
This commit is contained in:
Frank Gevaerts 2012-04-03 20:13:19 +02:00
parent 416da2260c
commit 1207c7b641

2
tools/configure vendored
View file

@ -3827,6 +3827,8 @@ if test -n "$t_cpu"; then
elif [ "$simulator" = "yes" ]; then # a few more includes for the sim target tree elif [ "$simulator" = "yes" ]; then # a few more includes for the sim target tree
TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl" TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted/sdl"
TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted" TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/hosted"
#disable _FORTIFY_SOURCE for simulator builds
GCCOPTS="$GCCOPTS -U_FORTIFY_SOURCE"
fi fi
TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer" TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"