From 030405ef8cd790d6a786d1f91485973486408880 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 4 Jan 2018 17:45:43 +0100 Subject: sys-devel/binutils-apple: set forgotten CTARGET in 3.2 Package-Manager: Portage-2.3.13, Repoman-2.3.3 --- sys-devel/binutils-apple/binutils-apple-3.2.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sys-devel') diff --git a/sys-devel/binutils-apple/binutils-apple-3.2.ebuild b/sys-devel/binutils-apple/binutils-apple-3.2.ebuild index 8b3622786d6e..9469e8bf164b 100644 --- a/sys-devel/binutils-apple/binutils-apple-3.2.ebuild +++ b/sys-devel/binutils-apple/binutils-apple-3.2.ebuild @@ -106,6 +106,13 @@ src_prepare() { } src_configure() { + export CTARGET=${CTARGET:-${CHOST}} + if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY} == cross-* ]] ; then + export CTARGET=${CATEGORY#cross-} + fi + fi + LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} INCPATH=${LIBPATH}/include DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} @@ -175,7 +182,8 @@ install_cctools() { BUILD_OBSOLETE_ARCH= \ DSTROOT=\"${D}\" \ USRBINDIR=\"${EPREFIX}\"${BINPATH} \ - LIBDIR=\"${EPREFIX}\"${LIBPATH} + LIBDIR=\"${EPREFIX}\"${LIBPATH} \ + LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} cd "${ED}"${BINPATH} insinto ${DATAPATH}/man/man1 -- cgit v1.2.3-65-gdbad