1 |
--- |
2 |
gx86/eclass/autotools-multilib.eclass | 21 ++++----------------- |
3 |
1 file changed, 4 insertions(+), 17 deletions(-) |
4 |
|
5 |
diff --git a/gx86/eclass/autotools-multilib.eclass b/gx86/eclass/autotools-multilib.eclass |
6 |
index 5ecbd2f..55d32d7 100644 |
7 |
--- a/gx86/eclass/autotools-multilib.eclass |
8 |
+++ b/gx86/eclass/autotools-multilib.eclass |
9 |
@@ -102,33 +102,20 @@ _autotools-multilib_wrap_headers() { |
10 |
|
11 |
#if defined(__x86_64__) /* amd64 */ |
12 |
# if defined(__ILP32__) /* x32 ABI */ |
13 |
-# error "abi_x86_x32 not supported by the package." |
14 |
+# error "x86_x32 not supported by the package." |
15 |
# else /* 64-bit ABI */ |
16 |
-# error "abi_x86_64 not supported by the package." |
17 |
+# error "x86_64 not supported by the package." |
18 |
# endif |
19 |
#elif defined(__i386__) /* plain x86 */ |
20 |
-# error "abi_x86_32 not supported by the package." |
21 |
+# error "x86_32 not supported by the package." |
22 |
#else |
23 |
# error "No ABI matched, please report a bug to bugs.gentoo.org" |
24 |
#endif |
25 |
_EOF_ |
26 |
fi |
27 |
|
28 |
- # XXX: get abi_* directly |
29 |
- local abi_flag |
30 |
- case "${ABI}" in |
31 |
- amd64) |
32 |
- abi_flag=abi_x86_64;; |
33 |
- x86) |
34 |
- abi_flag=abi_x86_32;; |
35 |
- x32) |
36 |
- abi_flag=abi_x86_x32;; |
37 |
- *) |
38 |
- die "Header wrapping for ${ABI} not supported yet";; |
39 |
- esac |
40 |
- |
41 |
# Note: match a space afterwards to avoid collision potential. |
42 |
- sed -e "/${abi_flag} /s&error.*&include <${CHOST}/${f}>&" \ |
43 |
+ sed -e "/${MULTILIB_ABI} /s&error.*&include <${CHOST}/${f}>&" \ |
44 |
-i "${ED}/tmp/multilib-include${f}" || die |
45 |
done |
46 |
} |
47 |
-- |
48 |
1.8.1.5 |