diff --git a/chromium-54.0.2840.59-i686-ld-memory-tricks.patch b/chromium-54.0.2840.59-i686-ld-memory-tricks.patch new file mode 100644 index 00000000..3af8c6bc --- /dev/null +++ b/chromium-54.0.2840.59-i686-ld-memory-tricks.patch @@ -0,0 +1,11 @@ +diff -up chromium-54.0.2840.59/build/toolchain/linux/BUILD.gn.ldmemory chromium-54.0.2840.59/build/toolchain/linux/BUILD.gn +--- chromium-54.0.2840.59/build/toolchain/linux/BUILD.gn.ldmemory 2016-10-19 15:56:20.253096784 -0400 ++++ chromium-54.0.2840.59/build/toolchain/linux/BUILD.gn 2016-10-19 15:58:17.940833948 -0400 +@@ -72,6 +72,7 @@ gcc_toolchain("x86") { + ar = "ar" + ld = cxx + extra_cppflags = "-fno-delete-null-pointer-checks" ++ extra_ldflags = "--no-keep-memory --reduce-memory-overheads" + + toolchain_args = { + current_cpu = "x86" diff --git a/chromium.spec b/chromium.spec index 10e0c301..c443d3f7 100644 --- a/chromium.spec +++ b/chromium.spec @@ -150,6 +150,8 @@ Patch23: chromium-53.0.2785.101-crrev-415028.patch Patch24: chromium-54.0.2840.59-nullfix.patch # Add explicit includedir for jpeglib.h Patch25: chromium-54.0.2840.59-jpeg-include-dir.patch +# On i686, pass --no-keep-memory --reduce-memory-overheads to ld. +Patch26: chromium-54.0.2840.59-i686-ld-memory-tricks.patch ### Chromium Tests Patches ### @@ -527,6 +529,7 @@ members of the Chromium and WebDriver teams. %patch23 -p1 -b .415208 %patch24 -p1 -b .nullfix %patch25 -p1 -b .jpegfix +%patch26 -p1 -b .ldmemory ### Chromium Tests Patches ### %patch100 -p1 -b .use_system_opus