]> git.tdb.fi Git - ext/subsurface.git/commitdiff
makefile: use dumpmachine instead of grep for Target
authorMartin Gysel <me@bearsh.org>
Sun, 27 Nov 2011 19:22:46 +0000 (20:22 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 27 Nov 2011 20:14:07 +0000 (12:14 -0800)
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>
Makefile

index 3f44cb68fc23cc8d70be09471a6720c29c55ecdb..0d3340232b899948022b4083c39dcfca851e37b0 100644 (file)
--- 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)