From 7984c93a58458b28996e25574a0a377d1384cad5 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 26 Jul 2007 11:49:00 +0000 Subject: [PATCH] Link command detection is done by make instead of shell. Should be faster. darcs-hash:20070726114910-f2ef6-bad2db97851664a74915bfde1405bfe55de1e4b8.gz --- snippets/linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/linux b/snippets/linux index 4b46885..f8689a1 100644 --- a/snippets/linux +++ b/snippets/linux @@ -210,7 +210,7 @@ USER_SOURCES += $$($(1)_SOURCES) $(2)/$(1)$(3): $$($(1)_OBJS) @$(QUIET_CMD_ECHO) " LINK $$@" - $(Q) $$(shell if [ -z "$$(filter %.cc,$$($(1)_SOURCES:%.cxx=%.cc))" ] ; then echo $$(CC) ; else echo $$(CXX) ; fi) \ + $(Q) $$(if $$(filter %.cc,$$($(1)_SOURCES:%.cxx=%.cc)),$$(CC),$$(CXX)) \ $$($(1)_OBJS) $$($(1)_LIBS:%=-l%) $$(LOADLIBES) $$(LDFLAGS) -Wl,-Map,$(USER_OBJS_DIR)/$(1).exe.map -o $$@ @echo "$(2)/$(1)$(3): \\" >$(USER_OBJS_DIR)/$(1).exe.d @sed -n -e 's/^LOAD \(.*\)$$$$/ \1 \\/p' $(USER_OBJS_DIR)/$(1).exe.map >>$(USER_OBJS_DIR)/$(1).exe.d -- 2.39.2