diff options
author | BlackEagle | 2017-11-20 16:43:25 +0100 |
---|---|---|
committer | BlackEagle | 2017-11-20 16:43:25 +0100 |
commit | 220c3c977eac7cfb3a227bb945cd0a638675489e (patch) | |
tree | 54df5768e789c3f437bda6de00cf048acb907f60 /chromium-FORTIFY_SOURCE-r2.patch | |
parent | e6e7341aa2b8e6d0f3adba36d7c6b48615210e43 (diff) | |
download | aur-220c3c977eac7cfb3a227bb945cd0a638675489e.tar.gz |
opera-developer-ffmpeg-codecs :: 64.0.3260.2-1
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
Diffstat (limited to 'chromium-FORTIFY_SOURCE-r2.patch')
-rw-r--r-- | chromium-FORTIFY_SOURCE-r2.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/chromium-FORTIFY_SOURCE-r2.patch b/chromium-FORTIFY_SOURCE-r2.patch new file mode 100644 index 000000000000..8ebf42a46a84 --- /dev/null +++ b/chromium-FORTIFY_SOURCE-r2.patch @@ -0,0 +1,30 @@ +Drop _FORTIFY_SOURCE=2 from defines + +Gentoo toolchains enable this by default. Removing this prevents spammy +warnings about the macro being redefined. + +--- a/build/config/compiler/BUILD.gn ++++ b/build/config/compiler/BUILD.gn +@@ -1213,22 +1213,6 @@ + "__STDC_FORMAT_MACROS", + ] + +- if (!is_debug && !using_sanitizer && +- (!is_linux || !is_clang || is_official_build) && +- current_cpu != "s390x" && current_cpu != "s390" && +- current_cpu != "ppc64" && current_cpu != "ppc64" && +- current_cpu != "mips" && current_cpu != "mips64") { +- # _FORTIFY_SOURCE isn't really supported by Clang now, see +- # http://llvm.org/bugs/show_bug.cgi?id=16821. +- # It seems to work fine with Ubuntu 12 headers though, so use it in +- # official builds. +- # +- # Non-chromium code is not guaranteed to compile cleanly with +- # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are +- # disabled, so only do that for Release build. +- defines += [ "_FORTIFY_SOURCE=2" ] +- } +- + if (is_mac || is_ios) { + cflags_objc = [ "-Wobjc-missing-property-synthesis" ] + cflags_objcc = [ "-Wobjc-missing-property-synthesis" ] |