Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 291865
Collapse All | Expand All

(-)utils-2.6.31.patch.orig (-1 / +2 lines)
Lines 2-14 Link Here
2
index cca9c4f..a304043 100644
2
index cca9c4f..a304043 100644
3
--- a/Makefile
3
--- a/Makefile
4
+++ b/Makefile
4
+++ b/Makefile
5
@@ -19,7 +19,14 @@ ifndef KDIR
5
@@ -19,7 +19,15 @@ ifndef KDIR
6
 KDIR = /lib/modules/$(shell uname -r)/build
6
 KDIR = /lib/modules/$(shell uname -r)/build
7
 endif
7
 endif
8
 
8
 
9
+ifndef ARCH
9
+ifndef ARCH
10
+ARCH := $(shell uname -m)
10
+ARCH := $(shell uname -m)
11
+endif
11
+endif
12
+ARCH := $(shell echo ${ARCH} | sed -e 's/i386$$/x86/')
12
+ARCH := $(shell echo ${ARCH} | sed -e 's/_64$$//')
13
+ARCH := $(shell echo ${ARCH} | sed -e 's/_64$$//')
13
+
14
+
14
 CFLAGS += -I${KDIR}/include
15
 CFLAGS += -I${KDIR}/include

Return to bug 291865