diff options
author | Jory A. Pratt <anarchy@gentoo.org> | 2021-12-06 22:41:06 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-06 22:43:12 +0000 |
commit | 8ec9df4262c5dea351c239266930f2cfa39fcb19 (patch) | |
tree | 0a2723798eb1be803a07366d769a12a372fbc948 | |
parent | dev-lang/rust: add 1.57.0, unkeyworded for testing (diff) | |
download | gentoo-8ec9df4262c5dea351c239266930f2cfa39fcb19.tar.gz gentoo-8ec9df4262c5dea351c239266930f2cfa39fcb19.tar.bz2 gentoo-8ec9df4262c5dea351c239266930f2cfa39fcb19.zip |
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@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | sys-devel/lld/lld-13.0.0.ebuild | 4 | ||||
-rw-r--r-- | sys-devel/lld/lld-13.0.1.9999.ebuild | 4 | ||||
-rw-r--r-- | sys-devel/lld/lld-13.0.1_rc1.ebuild | 4 | ||||
-rw-r--r-- | 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) |