ci/build-common: add -D_FORTIFY_SOURCE=3

This commit is contained in:
Dudemanguy 2024-10-17 13:35:17 -05:00
parent 04a2450aab
commit 3d3d06f981
2 changed files with 2 additions and 2 deletions

View File

@ -3,4 +3,4 @@ common_args="--werror \
-Dtests=true \
"
export CFLAGS="$CFLAGS -Wno-error=deprecated -Wno-error=deprecated-declarations"
export CFLAGS="$CFLAGS -Wno-error=deprecated -Wno-error=deprecated-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"

View File

@ -16,7 +16,7 @@ export AR=$TARGET-ar
export NM=$TARGET-nm
export RANLIB=$TARGET-ranlib
export CFLAGS="-O2 -pipe -Wall -D_FORTIFY_SOURCE=2"
export CFLAGS="-O2 -pipe -Wall"
export LDFLAGS="-fstack-protector-strong"
# anything that uses pkg-config