1
Description: When building on armhf, pass --no-keep-memory to the linker in an attempt to reduce the memory pressure on the Launchpad builders, which consistently result in an OOM situation where the linker is killed and the build fails.
2
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
3
Bug-Ubuntu: https://launchpad.net/bugs/1978989
5
--- a/build/config/compiler/BUILD.gn
6
+++ b/build/config/compiler/BUILD.gn
7
@@ -489,6 +489,10 @@ config("compiler") {
8
# error. "-lpthread" is added in //build/config:default_libs.
11
+ if (is_linux && target_cpu == "arm") {
12
+ ldflags += [ "-Wl,--no-keep-memory" ]
15
# Clang-specific compiler flags setup.
16
# ------------------------------------