[PATCH] makefile: use dumpmachine instead of grep for Target
Dirk Hohndel
dirk at hohndel.org
Sun Nov 27 12:41:03 PST 2011
Tested this on the machines I have access to (native on two different
Linux versions, native on Mac, cross on Linux for Windows).
Pushed to Linus.
/D
On Sun, 27 Nov 2011 20:22:46 +0100, me at bearsh.org wrote:
> 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
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
More information about the subsurface
mailing list