From: Martin Gysel Date: Sun, 27 Nov 2011 19:22:46 +0000 (+0100) Subject: makefile: use dumpmachine instead of grep for Target X-Git-Url: http://git.tdb.fi/?p=ext%2Fsubsurface.git;a=commitdiff_plain;h=46e72b698abfbaa371ec7e3e0d19bbdac322d17c 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 Signed-off-by: Linus Torvalds --- diff --git a/Makefile b/Makefile index 3f44cb6..0d33402 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)