summaryrefslogtreecommitdiffstats
path: root/lib/skin_parser/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/Makefile')
-rw-r--r--lib/skin_parser/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/skin_parser/Makefile b/lib/skin_parser/Makefile
index fe417dbc58..5105b040fd 100644
--- a/lib/skin_parser/Makefile
+++ b/lib/skin_parser/Makefile
@@ -18,6 +18,7 @@ TARGET_DIR ?= ./
# construct build directory if BUILDDIR is not set.
BUILDDIR ?= $(TARGET_DIR)build
+TARGETPLATFORM ?= $(shell uname)
ifdef RBARCH
CFLAGS += -arch $(RBARCH)
@@ -37,7 +38,7 @@ $(OBJDIR)%.o: %.c
$(SILENT)mkdir -p $(dir $@)
$(SILENT)$(CC) $(CFLAGS) -c -o $@ $<
-ifeq ($(findstring Darwin,$(shell uname)),Darwin)
+ifeq ($(findstring Darwin,$(TARGETPLATFORM)),Darwin)
# some trickery to build ppc and i386 from a single call
$(OUTPUT).a: $(TARGET_DIR)$(OUTPUT)i386.a $(TARGET_DIR)$(OUTPUT)ppc.a
@echo lipo $(TARGET_DIR)$@