mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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:
parent
416da2260c
commit
1207c7b641
1 changed files with 2 additions and 0 deletions
2
tools/configure
vendored
2
tools/configure
vendored
|
@ -3827,6 +3827,8 @@ if test -n "$t_cpu"; then
|
|||
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"
|
||||
#disable _FORTIFY_SOURCE for simulator builds
|
||||
GCCOPTS="$GCCOPTS -U_FORTIFY_SOURCE"
|
||||
fi
|
||||
|
||||
TARGET_INC="$TARGET_INC -I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue