rustpkg.mk: Defer shell commands until after 'define' expansion

This way the uname -s check will prevent us from invoking nonexistent sw_vers
on Linux.
This commit is contained in:
Keegan McAllister 2013-11-25 13:16:26 -08:00
parent f6646e17bf
commit 3f1051022a

View file

@ -12,11 +12,11 @@ DO_CLEAN_$(1) = rm -rf $$(DONE_$(1)) $(CFG_BUILD_HOME)/workspace/build/$(CFG_TAR
EXTRA_RFLAGS_$(1) =
ifeq ($(shell uname -s),Darwin)
ifeq ($(shell sw_vers | grep -c 10.6),1)
ifeq ($$(shell uname -s),Darwin)
ifeq ($$(shell sw_vers | grep -c 10.6),1)
EXTRA_RFLAGS_$(1) += --cfg mac_10_6
endif
ifeq ($(shell sw_vers | grep -c 10.7),1)
ifeq ($$(shell sw_vers | grep -c 10.7),1)
EXTRA_RFLAGS_$(1) += --cfg mac_10_7
endif
else