commit:     bd39ede440cb499e041b8352703111212fa2e6b6
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 21 17:56:44 2020 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Dec 21 17:57:08 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd39ede4

sys-devel/binutils-apple-8.2.1-r100: fix strip's linkage to libprunetrie

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-devel/binutils-apple/binutils-apple-8.2.1-r100.ebuild | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sys-devel/binutils-apple/binutils-apple-8.2.1-r100.ebuild 
b/sys-devel/binutils-apple/binutils-apple-8.2.1-r100.ebuild
index 09414c80bf1..247ce794be1 100644
--- a/sys-devel/binutils-apple/binutils-apple-8.2.1-r100.ebuild
+++ b/sys-devel/binutils-apple/binutils-apple-8.2.1-r100.ebuild
@@ -24,6 +24,16 @@ BDEPEND=""
 
 S="${WORKDIR}/darwin-xtools-gentoo-${PVR}"
 
+src_prepare() {
+       cmake_src_prepare
+
+       # make prunetrie a static archive, because the dynamic libs aren't
+       # installed, for there really are no consumers
+       # fixed for next release
+       sed -i -e '/add_library/s/prunetrie/& STATIC/' \
+               ld64/src/CMakeLists.txt || die
+}
+
 src_configure() {
        CTARGET=${CTARGET:-${CHOST}}
        if [[ ${CTARGET} == ${CHOST} ]] ; then
@@ -53,6 +63,7 @@ src_configure() {
                -DCMAKE_INSTALL_PREFIX=${EPREFIX}${BINPATH%/*}  # cmake insists 
on /bin
                -DCCTOOLS_LD_CLASSIC=NO  # fails to link, and is useless anyway
                -DXTOOLS_LTO_SUPPORT=NO
+               -DXTOOLS_HAS_LIBPRUNETRIE=YES
                -DXTOOLS_TAPI_SUPPORT=$(use tapi && echo ON || echo OFF)
                -DXTOOLS_HOST_IS_64B=$(is-host-64bit)
                -DXTOOLS_BUGURL="https://bugs.gentoo.org/";

Reply via email to