From afe3d5fe0a528f7addae6bba999b739789b8b3a8 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 21 Dec 2014 15:53:01 +0000 Subject: Stack protector flags are required also at link time, at least on MinGW Github issue 34 --- src/build-data/cc/gcc.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/build-data/cc/gcc.txt') diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt index 3872dfdbf..a547f4c99 100644 --- a/src/build-data/cc/gcc.txt +++ b/src/build-data/cc/gcc.txt @@ -8,7 +8,7 @@ add_include_dir_option -I add_lib_dir_option -L add_lib_option -l -lang_flags "-std=c++11 -D_REENTRANT -fstack-protector" +lang_flags "-std=c++11 -D_REENTRANT" maintainer_warning_flags "-Werror -Wno-error=old-style-cast -Wno-error=zero-as-null-pointer-constant -Wno-error=unused-parameter -Wno-error=unused-variable -Wno-error=strict-overflow" warning_flags "-Wall -Wextra -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wold-style-cast -Wzero-as-null-pointer-constant" @@ -96,9 +96,9 @@ all_x86_32 -> "-momit-leaf-frame-pointer" all_x86_64 -> "-momit-leaf-frame-pointer" -# The 'linking' bit means "use this for both compiling *and* linking" +# Flags set here are included at compile and link time -all -> "-pthread" +all -> "-pthread -fstack-protector" mips64 -> "-mabi=64" s390 -> "-m31" -- cgit v1.2.3