diff options
Diffstat (limited to 'src/build-data')
-rw-r--r-- | src/build-data/cc/gcc.txt | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt index 365ec87f9..2aff1bf6b 100644 --- a/src/build-data/cc/gcc.txt +++ b/src/build-data/cc/gcc.txt @@ -8,8 +8,8 @@ add_include_dir_option -I add_lib_dir_option -L add_lib_option -l -lang_flags "-std=c++11 -D_REENTRANT -fstack-protector" -maintainer_warning_flags "-Werror -Wno-error=old-style-cast -Wno-error=zero-as-null-pointer-constant -Wno-error=unused-parameter -Wno-error=unused-variable" +lang_flags "-std=c++11 -D_REENTRANT -D_FORTIFY_SOURCE=2 -fstack-protector" +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" lib_opt_flags "-O3" @@ -26,28 +26,27 @@ makefile_style gmake # The default works for GNU ld and several other Unix linkers default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)" -# AIX doesn't seem to have soname support (weird...) -aix -> "$(CXX) -shared -fPIC" - -# OpenBSD doesn't use soname -openbsd -> "$(CXX) -shared -fPIC" - +# Darwin, HP-UX and Solaris linkers use different syntax darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(LIBDIR)/$(SONAME)" hpux -> "$(CXX) -shared -fPIC -Wl,+h,$(SONAME)" solaris -> "$(CXX) -shared -fPIC -Wl,-h,$(SONAME)" + +# AIX and OpenBSD don't use sonames at all +aix -> "$(CXX) -shared -fPIC" +openbsd -> "$(CXX) -shared -fPIC" </so_link_flags> <isa_flags> -sse2 -> "-msse2" -ssse3 -> "-mssse3" -sse4.1 -> "-msse4.1" -sse4.2 -> "-msse4.2" -avx2 -> "-mavx2" -bmi2 -> "-mbmi2" -aesni -> "-maes" -clmul -> "-mpclmul" -rdrand -> "-mrdrnd" -sha -> "-msha" +sse2 -> "-msse2" +ssse3 -> "-mssse3" +sse4.1 -> "-msse4.1" +sse4.2 -> "-msse4.2" +avx2 -> "-mavx2" +bmi2 -> "-mbmi2" +aesni -> "-maes" +clmul -> "-mpclmul" +rdrand -> "-mrdrnd" +sha -> "-msha" altivec -> "-maltivec" </isa_flags> |