1 |
commit: 030405ef8cd790d6a786d1f91485973486408880 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 4 16:45:43 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 4 16:46:22 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=030405ef |
7 |
|
8 |
sys-devel/binutils-apple: set forgotten CTARGET in 3.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.13, Repoman-2.3.3 |
11 |
|
12 |
sys-devel/binutils-apple/binutils-apple-3.2.ebuild | 10 +++++++++- |
13 |
1 file changed, 9 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/sys-devel/binutils-apple/binutils-apple-3.2.ebuild b/sys-devel/binutils-apple/binutils-apple-3.2.ebuild |
16 |
index 8b3622786d6..9469e8bf164 100644 |
17 |
--- a/sys-devel/binutils-apple/binutils-apple-3.2.ebuild |
18 |
+++ b/sys-devel/binutils-apple/binutils-apple-3.2.ebuild |
19 |
@@ -106,6 +106,13 @@ src_prepare() { |
20 |
} |
21 |
|
22 |
src_configure() { |
23 |
+ export CTARGET=${CTARGET:-${CHOST}} |
24 |
+ if [[ ${CTARGET} == ${CHOST} ]] ; then |
25 |
+ if [[ ${CATEGORY} == cross-* ]] ; then |
26 |
+ export CTARGET=${CATEGORY#cross-} |
27 |
+ fi |
28 |
+ fi |
29 |
+ |
30 |
LIBPATH=/usr/$(get_libdir)/binutils/${CTARGET}/${PV} |
31 |
INCPATH=${LIBPATH}/include |
32 |
DATAPATH=/usr/share/binutils-data/${CTARGET}/${PV} |
33 |
@@ -175,7 +182,8 @@ install_cctools() { |
34 |
BUILD_OBSOLETE_ARCH= \ |
35 |
DSTROOT=\"${D}\" \ |
36 |
USRBINDIR=\"${EPREFIX}\"${BINPATH} \ |
37 |
- LIBDIR=\"${EPREFIX}\"${LIBPATH} |
38 |
+ LIBDIR=\"${EPREFIX}\"${LIBPATH} \ |
39 |
+ LOCLIBDIR=\"${EPREFIX}\"${LIBPATH} |
40 |
|
41 |
cd "${ED}"${BINPATH} |
42 |
insinto ${DATAPATH}/man/man1 |