From 8ec9df4262c5dea351c239266930f2cfa39fcb19 Mon Sep 17 00:00:00 2001 From: "Jory A. Pratt" Date: Mon, 6 Dec 2021 22:41:06 +0000 Subject: 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 Signed-off-by: Sam James --- 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) -- cgit v1.2.3-65-gdbad