1 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
2 |
--- |
3 |
arch/amd64.py | 11 ++++++++++- |
4 |
1 file changed, 10 insertions(+), 1 deletion(-) |
5 |
|
6 |
diff --git a/arch/amd64.py b/arch/amd64.py |
7 |
index 1697483..4cd229c 100644 |
8 |
--- a/arch/amd64.py |
9 |
+++ b/arch/amd64.py |
10 |
@@ -56,6 +56,14 @@ class arch_amdfam10(generic_amd64): |
11 |
self.settings["CHOST"]="x86_64-pc-linux-gnu" |
12 |
self.settings["HOSTUSE"]=["mmx","sse","sse2","3dnow"] |
13 |
|
14 |
+class arch_x32(generic_amd64): |
15 |
+ "builder class for generic x32 (Intel and AMD)" |
16 |
+ def __init__(self,myspec): |
17 |
+ generic_amd64.__init__(self,myspec) |
18 |
+ self.settings["CFLAGS"]="-O2 -pipe" |
19 |
+ self.settings["CHOST"]="x86_64-pc-linux-gnux32" |
20 |
+ self.settings["HOSTUSE"]=["mmx","sse","sse2"] |
21 |
+ |
22 |
def register(): |
23 |
"inform main catalyst program of the contents of this plugin" |
24 |
return ({ |
25 |
@@ -70,6 +78,7 @@ def register(): |
26 |
"opteron-sse3" : arch_k8_sse3, |
27 |
"athlon64-sse3" : arch_k8_sse3, |
28 |
"amdfam10" : arch_amdfam10, |
29 |
- "barcelona" : arch_amdfam10 |
30 |
+ "barcelona" : arch_amdfam10, |
31 |
+ "x32" : arch_x32, |
32 |
}, ("x86_64","amd64","nocona")) |
33 |
|
34 |
-- |
35 |
1.7.9.7 |