From 41c719f127c1ca375da519962f145885b416f8e9 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 11 Apr 2020 21:13:02 +0800 Subject: [PATCH] [ghostscript] Enable flag also used in valgrind builds. (#3620) Valgrind may complain when software reads out partially uninitialized data and stores it elsewhere, but only reads the initialized parts from this latter location. The flag enables code that initializes all the data to avoid valgrind reporting false positives. Presumably MSAN suffers from similar issues so, try enabling this flag. --- projects/ghostscript/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ghostscript/build.sh b/projects/ghostscript/build.sh index 94d8a715d..07ae5ee70 100755 --- a/projects/ghostscript/build.sh +++ b/projects/ghostscript/build.sh @@ -43,7 +43,7 @@ CUPS_LDFLAGS=$($CUPSCONFIG --ldflags) CUPS_LIBS=$($CUPSCONFIG --image --libs) export CXXFLAGS="$CXXFLAGS $CUPS_CFLAGS" -CPPFLAGS="${CPPFLAGS:-} $CUPS_CFLAGS" ./autogen.sh \ +CPPFLAGS="${CPPFLAGS:-} $CUPS_CFLAGS -DPACIFY_VALGRIND" ./autogen.sh \ CUPSCONFIG=$CUPSCONFIG \ --enable-freetype --enable-fontconfig \ --enable-cups --with-ijs --with-jbig2dec \