summaryrefslogtreecommitdiffstats
path: root/source/xap/seamonkey/seamonkey.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/seamonkey/seamonkey.SlackBuild')
-rwxr-xr-xsource/xap/seamonkey/seamonkey.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/xap/seamonkey/seamonkey.SlackBuild b/source/xap/seamonkey/seamonkey.SlackBuild
index 5c7b5928b..870828181 100755
--- a/source/xap/seamonkey/seamonkey.SlackBuild
+++ b/source/xap/seamonkey/seamonkey.SlackBuild
@@ -65,7 +65,14 @@ fi
# avoids a recurring build failure with GNU ld on other systems.
PATH="$(pwd)/gold:$PATH"
export CC=${CC:-"gcc -B$(pwd)/gold"}
-export CXX=${CXX:-"g++ -B$(pwd)/gold -fno-delete-null-pointer-checks"}
+export CXX=${CXX:-"g++ -B$(pwd)/gold"}
+
+# -Wformat is needed for -Werror=format-security
+# -Wno-format-overflow bypasses gcc9 build failure
+# -fno-delete-null-pointer-checks disables gcc6 optimization that
+# leads to instability
+export CFLAGS="-Wformat -Wno-format-overflow -fno-delete-null-pointer-checks"
+export CXXFLAGS="-Wformat -Wno-format-overflow -fno-delete-null-pointer-checks"
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}