summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Martin Gysel <me@bearsh.org>2011-11-27 20:22:46 +0100
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-27 12:14:07 -0800
commit46e72b698abfbaa371ec7e3e0d19bbdac322d17c (patch)
tree09c5581f6b0fecd887cc93e98c3fd76928e7cd4e /Makefile
parentaddfe79024abf29740b3d6b6b88d27469289c2e2 (diff)
downloadsubsurface-46e72b698abfbaa371ec7e3e0d19bbdac322d17c.tar.gz
makefile: use dumpmachine instead of grep for Target
grep for Target doesn't work on non english platforms -dumpmachine is (hopefully) supposed to always return the target machine tuple Signed-off-by: Martin Gysel <me@bearsh.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3f44cb68f..0d3340232 100644
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,7 @@ GLIB2CFLAGS = $(shell $(PKGCONFIG) --cflags glib-2.0)
GTK2CFLAGS = $(shell $(PKGCONFIG) --cflags gtk+-2.0)
CFLAGS += $(shell $(XSLCONFIG) --cflags)
-UNAME := $(shell $(CC) -v 2>&1 | grep Target | grep -E -o "linux|darwin|win")
+UNAME := $(shell $(CC) -dumpmachine 2>&1 | grep -E -o "linux|darwin|win")
ifeq ($(UNAME), linux)