diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2021-11-14 13:45:57 -0800 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2021-11-14 13:45:57 -0800 |
commit | 39b1e4c62637e49676c47380c7fe5a41d92b3c77 (patch) | |
tree | 8c900e0ae7bb248bdd0dd5cf90c017afc61f8a66 /arc4_enable-lto-for-gcc.patch | |
parent | Updated to 91.3.0 (diff) | |
download | firefox-esr-39b1e4c62637e49676c47380c7fe5a41d92b3c77.tar.xz |
Archive some old patches before I delete them.
Diffstat (limited to 'arc4_enable-lto-for-gcc.patch')
-rw-r--r-- | arc4_enable-lto-for-gcc.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arc4_enable-lto-for-gcc.patch b/arc4_enable-lto-for-gcc.patch new file mode 100644 index 0000000..982f68a --- /dev/null +++ b/arc4_enable-lto-for-gcc.patch @@ -0,0 +1,14 @@ +--- a/security/sandbox/linux/moz.build ++++ b/security/sandbox/linux/moz.build +@@ -99,9 +99,8 @@ if CONFIG['CC_TYPE'] in ('clang', 'gcc') + # gcc lto likes to put the top level asm in syscall.cc in a different partition + # from the function using it which breaks the build. Work around that by + # forcing there to be only one partition. +-for f in CONFIG["OS_CXXFLAGS"]: +- if f.startswith("-flto") and CONFIG["CC_TYPE"] != "clang": +- LDFLAGS += ["--param lto-partitions=1"] ++if CONFIG['CC_TYPE'] != 'clang': ++ LDFLAGS += ['--param', 'lto-partitions=1'] + + DEFINES["NS_NO_XPCOM"] = True + DisableStlWrapping() |