summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-01-04 17:45:43 +0100
committerFabian Groffen <grobian@gentoo.org>2018-01-04 17:46:22 +0100
commit030405ef8cd790d6a786d1f91485973486408880 (patch)
tree20bad685976b0f863c5b4bc3360869053e2d90b2 /sys-devel
parentdev-python/stapler: inherit vcs-snapshot eclass. (diff)
downloadgentoo-030405ef8cd790d6a786d1f91485973486408880.tar.gz
gentoo-030405ef8cd790d6a786d1f91485973486408880.tar.bz2
gentoo-030405ef8cd790d6a786d1f91485973486408880.zip
sys-devel/binutils-apple: set forgotten CTARGET in 3.2
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/binutils-apple/binutils-apple-3.2.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys-devel/binutils-apple/binutils-apple-3.2.ebuild b/sys-devel/binutils-apple/binutils-apple-3.2.ebuild
index 8b3622786d6..9469e8bf164 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