amd64.py: define CHOST for nocona and core2
authorMatt Turner <mattst88@gmail.com>
Fri, 27 Jan 2012 16:00:24 +0000 (11:00 -0500)
committerMatt Turner <mattst88@gmail.com>
Fri, 27 Jan 2012 16:02:25 +0000 (11:02 -0500)
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=400829

arch/amd64.py

index aaf587adb493d91bf62be1a4812578f0db02b296..169748387472c791d345774e98c2e67799db98de 100644 (file)
@@ -20,6 +20,7 @@ class arch_nocona(generic_amd64):
        def __init__(self,myspec):
                generic_amd64.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -march=nocona -pipe"
+               self.settings["CHOST"]="x86_64-pc-linux-gnu"
                self.settings["HOSTUSE"]=["mmx","sse","sse2"]
 
 # Requires gcc 4.3 to use this class
@@ -28,6 +29,7 @@ class arch_core2(generic_amd64):
        def __init__(self,myspec):
                generic_amd64.__init__(self,myspec)
                self.settings["CFLAGS"]="-O2 -march=core2 -pipe"
+               self.settings["CHOST"]="x86_64-pc-linux-gnu"
                self.settings["HOSTUSE"]=["mmx","sse","sse2","ssse3"]
 
 class arch_k8(generic_amd64):