commit: ec2b13a11a6b5712817b20dab096a668f4afd06f Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Jun 29 15:03:37 2020 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Jun 29 15:04:58 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec2b13a1
sys-devel/clang: Pass -Wl,--no-keep-memory to linker on x86 Closes: https://bugs.gentoo.org/712052 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sys-devel/clang/clang-10.0.0.ebuild | 4 ++++ sys-devel/clang/clang-10.0.1.9999.ebuild | 4 ++++ sys-devel/clang/clang-10.0.1_rc1.ebuild | 4 ++++ sys-devel/clang/clang-11.0.0.9999.ebuild | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/sys-devel/clang/clang-10.0.0.ebuild b/sys-devel/clang/clang-10.0.0.ebuild index aae5ad123f0..564bc4664b1 100644 --- a/sys-devel/clang/clang-10.0.0.ebuild +++ b/sys-devel/clang/clang-10.0.0.ebuild @@ -234,6 +234,10 @@ multilib_src_configure() { ) fi + # LLVM can have very high memory consumption while linking, + # exhausting the limit on 32-bit linker executable + use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory" + # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" cmake-utils_src_configure diff --git a/sys-devel/clang/clang-10.0.1.9999.ebuild b/sys-devel/clang/clang-10.0.1.9999.ebuild index 2b8d5fee058..944ffa67b3d 100644 --- a/sys-devel/clang/clang-10.0.1.9999.ebuild +++ b/sys-devel/clang/clang-10.0.1.9999.ebuild @@ -289,6 +289,10 @@ multilib_src_configure() { ) fi + # LLVM can have very high memory consumption while linking, + # exhausting the limit on 32-bit linker executable + use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory" + # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" cmake_src_configure diff --git a/sys-devel/clang/clang-10.0.1_rc1.ebuild b/sys-devel/clang/clang-10.0.1_rc1.ebuild index db3798d217b..ec222215357 100644 --- a/sys-devel/clang/clang-10.0.1_rc1.ebuild +++ b/sys-devel/clang/clang-10.0.1_rc1.ebuild @@ -289,6 +289,10 @@ multilib_src_configure() { ) fi + # LLVM can have very high memory consumption while linking, + # exhausting the limit on 32-bit linker executable + use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory" + # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" cmake_src_configure diff --git a/sys-devel/clang/clang-11.0.0.9999.ebuild b/sys-devel/clang/clang-11.0.0.9999.ebuild index 5991c42d4c6..76cb2b8d998 100644 --- a/sys-devel/clang/clang-11.0.0.9999.ebuild +++ b/sys-devel/clang/clang-11.0.0.9999.ebuild @@ -284,6 +284,10 @@ multilib_src_configure() { ) fi + # LLVM can have very high memory consumption while linking, + # exhausting the limit on 32-bit linker executable + use x86 && local -x LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory" + # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844 use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG" cmake_src_configure
