aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Martijn van Beurden <mvanb1@gmail.com>2022-07-12 11:12:43 +0200
committerGravatar GitHub <noreply@github.com>2022-07-12 10:12:43 +0100
commit828f5cef071f6004d348d2b12eb7e0f54ff9c7c2 (patch)
tree121033e43e2370214248dd4c6a4de2a0298638b3
parentf44e7b364a1cab3f7cd4063bb9be11ee952b7956 (diff)
[flac] Disable _FORTIFY_SOURCE for all sanitizers (#7997)
-rwxr-xr-xprojects/flac/build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/flac/build.sh b/projects/flac/build.sh
index a7e7e51e..cb7ce820 100755
--- a/projects/flac/build.sh
+++ b/projects/flac/build.sh
@@ -27,7 +27,8 @@ then
export CXXFLAGS="$CXXFLAGS -DMSAN"
fi
-export CXXFLAGS="$CXXFLAGS -D_GLIBCXX_DEBUG"
+export CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=0"
+export CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=0 -D_GLIBCXX_DEBUG"
# Build libogg
mkdir $SRC/libogg-install
@@ -42,7 +43,6 @@ cd $SRC/flac/
./autogen.sh
if [[ $CFLAGS = *sanitize=memory* ]]
then
- export CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=0"
LD_LIBRARY_PATH="$SRC/libogg-install/lib" ./configure --with-ogg="$SRC/libogg-install" --enable-static --disable-shared --disable-oggtest --disable-examples --disable-xmms-plugin --disable-asm-optimizations --disable-sse --enable-oss-fuzzers
else
LD_LIBRARY_PATH="$SRC/libogg-install/lib" ./configure --with-ogg="$SRC/libogg-install" --enable-static --disable-shared --disable-oggtest --disable-examples --disable-xmms-plugin --enable-oss-fuzzers