[PATCH] makefile: use dumpmachine instead of grep for Target

me at bearsh.org me at bearsh.org
Sun Nov 27 11:22:46 PST 2011


From: Martin Gysel <me at bearsh.org>

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 at bearsh.org>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index c4aaf90..0d81fc2 100644
--- a/Makefile
+++ b/Makefile
@@ -88,7 +88,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)
-- 
1.7.8.rc3



More information about the subsurface mailing list