From 828f5cef071f6004d348d2b12eb7e0f54ff9c7c2 Mon Sep 17 00:00:00 2001 From: Martijn van Beurden Date: Tue, 12 Jul 2022 11:12:43 +0200 Subject: [flac] Disable _FORTIFY_SOURCE for all sanitizers (#7997) --- projects/flac/build.sh | 4 ++-- 1 file 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 -- cgit v1.2.3