summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2014-04-03 22:53:08 -0400
committerJason Woodward2014-04-03 22:53:08 -0400
commit56c8f3efb94a1ed65edb6ed7e67eb2882842bd2a (patch)
treef4f1ba229d21865ae6fb699f651e642b2ac51ea3
parent5e22bebcc11bb1ce83abdb79a82e4d5b69cd9910 (diff)
downloadslapt-get-56c8f3efb94a1ed65edb6ed7e67eb2882842bd2a.tar.gz
detect host target with default gcc -dumpmachine
uname -m is unreliable if running a 64bit kernel in 32bit userland.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3587549..c60809c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
PACKAGE=slapt-get
VERSION=0.10.2q
-ARCH?=$(shell uname -m | sed -e "s/i[3456]86/i386/")
+ARCH?=$(shell gcc -dumpmachine | cut -f1 -d- | sed -e "s/i[3456]86/i386/")
LIBDIR=/usr/lib
RELEASE=1
CC?=gcc