commit:     8ec9df4262c5dea351c239266930f2cfa39fcb19
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  6 22:41:06 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec  6 22:43:12 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ec9df42

sys-devel/lld: grow stack size for musl

[sam: needed to avoid linker from dying on musl
on larger builds.]

Signed-off-by: Jory A. Pratt <anarchy <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/lld/lld-13.0.0.ebuild      | 4 +++-
 sys-devel/lld/lld-13.0.1.9999.ebuild | 4 +++-
 sys-devel/lld/lld-13.0.1_rc1.ebuild  | 4 +++-
 sys-devel/lld/lld-14.0.0.9999.ebuild | 4 +++-
 4 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/sys-devel/lld/lld-13.0.0.ebuild b/sys-devel/lld/lld-13.0.0.ebuild
index b785c62fae4b..16d9d0874180 100644
--- a/sys-devel/lld/lld-13.0.0.ebuild
+++ b/sys-devel/lld/lld-13.0.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{8..10} )
-inherit cmake llvm llvm.org python-any-r1
+inherit cmake flag-o-matic llvm llvm.org python-any-r1
 
 DESCRIPTION="The LLVM linker (link editor)"
 HOMEPAGE="https://llvm.org/";
@@ -51,6 +51,8 @@ src_configure() {
        # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
        use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
 
+       use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
+
        local mycmakeargs=(
                -DBUILD_SHARED_LIBS=ON
                -DLLVM_INCLUDE_TESTS=$(usex test)

diff --git a/sys-devel/lld/lld-13.0.1.9999.ebuild 
b/sys-devel/lld/lld-13.0.1.9999.ebuild
index 8bcce2b3022a..863c9b49bdb9 100644
--- a/sys-devel/lld/lld-13.0.1.9999.ebuild
+++ b/sys-devel/lld/lld-13.0.1.9999.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{8..10} )
-inherit cmake llvm llvm.org python-any-r1
+inherit cmake flag-o-matic llvm llvm.org python-any-r1
 
 DESCRIPTION="The LLVM linker (link editor)"
 HOMEPAGE="https://llvm.org/";
@@ -51,6 +51,8 @@ src_configure() {
        # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
        use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
 
+       use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
+
        local mycmakeargs=(
                -DBUILD_SHARED_LIBS=ON
                -DLLVM_INCLUDE_TESTS=$(usex test)

diff --git a/sys-devel/lld/lld-13.0.1_rc1.ebuild 
b/sys-devel/lld/lld-13.0.1_rc1.ebuild
index 8bcce2b3022a..863c9b49bdb9 100644
--- a/sys-devel/lld/lld-13.0.1_rc1.ebuild
+++ b/sys-devel/lld/lld-13.0.1_rc1.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{8..10} )
-inherit cmake llvm llvm.org python-any-r1
+inherit cmake flag-o-matic llvm llvm.org python-any-r1
 
 DESCRIPTION="The LLVM linker (link editor)"
 HOMEPAGE="https://llvm.org/";
@@ -51,6 +51,8 @@ src_configure() {
        # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
        use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
 
+       use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
+
        local mycmakeargs=(
                -DBUILD_SHARED_LIBS=ON
                -DLLVM_INCLUDE_TESTS=$(usex test)

diff --git a/sys-devel/lld/lld-14.0.0.9999.ebuild 
b/sys-devel/lld/lld-14.0.0.9999.ebuild
index 8bcce2b3022a..863c9b49bdb9 100644
--- a/sys-devel/lld/lld-14.0.0.9999.ebuild
+++ b/sys-devel/lld/lld-14.0.0.9999.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_{8..10} )
-inherit cmake llvm llvm.org python-any-r1
+inherit cmake flag-o-matic llvm llvm.org python-any-r1
 
 DESCRIPTION="The LLVM linker (link editor)"
 HOMEPAGE="https://llvm.org/";
@@ -51,6 +51,8 @@ src_configure() {
        # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
        use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
 
+       use elibc_musl && append-ldflags -Wl,-z,stack-size=2097152
+
        local mycmakeargs=(
                -DBUILD_SHARED_LIBS=ON
                -DLLVM_INCLUDE_TESTS=$(usex test)

Reply via email to