diff options
author | lloyd <[email protected]> | 2014-05-26 11:53:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-05-26 11:53:31 +0000 |
commit | 91c8a2cbae4486f4988eda6ae5b7cb2497285346 (patch) | |
tree | 82276370964f2fc55253f0572e7f383612ffe74c /src/build-data | |
parent | b9cd85a383b5a522a25d4d798e66d2921e2e1398 (diff) |
Erroring on strict-overflow is a little too strict, GCC 4.9 is smart
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> |