1 |
flameeyes 09/03/11 23:58:31 |
2 |
|
3 |
Modified: qt4-build.eclass |
4 |
Log: |
5 |
Use $(tc-arch) rather than ${ARCH}. |
6 |
|
7 |
With this change, the 32-bit userland version of amd64 profiles will |
8 |
build qt properly; without this, Qt will enable 64-bit instructions |
9 |
when the compiler is set to produce 32-bit code, causing an assembler |
10 |
failure. |
11 |
|
12 |
This is needed to be able to build Qt4 for the emul-linux-x86 |
13 |
packages. |
14 |
|
15 |
Revision Changes Path |
16 |
1.27 eclass/qt4-build.eclass |
17 |
|
18 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?rev=1.27&view=markup |
19 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?rev=1.27&content-type=text/plain |
20 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/qt4-build.eclass?r1=1.26&r2=1.27 |
21 |
|
22 |
Index: qt4-build.eclass |
23 |
=================================================================== |
24 |
RCS file: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v |
25 |
retrieving revision 1.26 |
26 |
retrieving revision 1.27 |
27 |
diff -u -r1.26 -r1.27 |
28 |
--- qt4-build.eclass 5 Mar 2009 09:25:01 -0000 1.26 |
29 |
+++ qt4-build.eclass 11 Mar 2009 23:58:31 -0000 1.27 |
30 |
@@ -1,6 +1,6 @@ |
31 |
# Copyright 2007-2009 Gentoo Foundation |
32 |
# Distributed under the terms of the GNU General Public License v2 |
33 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.26 2009/03/05 09:25:01 hwoarang Exp $ |
34 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.27 2009/03/11 23:58:31 flameeyes Exp $ |
35 |
|
36 |
# @ECLASS: qt4-build.eclass |
37 |
# @MAINTAINER: |
38 |
@@ -209,14 +209,14 @@ |
39 |
fi |
40 |
|
41 |
# ARCH is set on Gentoo. Qt now falls back to generic on an unsupported |
42 |
- # ${ARCH}. Therefore we convert it to supported values. |
43 |
- case "${ARCH}" in |
44 |
+ # $(tc-arch). Therefore we convert it to supported values. |
45 |
+ case "$(tc-arch)" in |
46 |
amd64) myconf="${myconf} -arch x86_64" ;; |
47 |
ppc|ppc64) myconf="${myconf} -arch powerpc" ;; |
48 |
x86|x86-*) myconf="${myconf} -arch i386" ;; |
49 |
- alpha|arm|ia64|mips|s390|sparc) myconf="${myconf} -arch ${ARCH}" ;; |
50 |
+ alpha|arm|ia64|mips|s390|sparc) myconf="${myconf} -arch $(tc-arch)" ;; |
51 |
hppa|sh) myconf="${myconf} -arch generic" ;; |
52 |
- *) die "${ARCH} is unsupported by this eclass. Please file a bug." ;; |
53 |
+ *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;; |
54 |
esac |
55 |
|
56 |
myconf="${myconf} -stl -verbose -largefile -confirm-license -no-rpath |