From bd39ede440cb499e041b8352703111212fa2e6b6 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 21 Dec 2020 18:56:44 +0100 Subject: 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 --- sys-devel/binutils-apple/binutils-apple-8.2.1-r100.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sys-devel') 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 09414c80bf15..247ce794be10 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/" -- cgit v1.2.3-65-gdbad