Fixes bug #106092
authorJohn Mylchreest <johnm@gentoo.org>
Thu, 22 Sep 2005 14:13:36 +0000 (14:13 +0000)
committerJohn Mylchreest <johnm@gentoo.org>
Thu, 22 Sep 2005 14:13:36 +0000 (14:13 +0000)
eclass/linux-mod.eclass

index d8025a8238a55f6cc1acc2714a29ed4436f974b7..91165975bf9546597e30deab3029cbf402ea1521 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.51 2005/08/22 12:12:10 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.52 2005/09/22 14:13:36 johnm Exp $
 
 # Description: This eclass is used to interface with linux-info in such a way
 #              to provide the functionality required and initial functions
@@ -426,7 +426,7 @@ linux-mod_pkg_setup() {
 
 linux-mod_src_compile() {
        local modulename libdir srcdir objdir i n myARCH="${ARCH}"
-       unset ARCH
+       ARCH="$(tc-arch-kernel)"
 
        BUILD_TARGETS=${BUILD_TARGETS:-clean module}