|
@@ -176,11 +176,13 @@ check_ld=$(shell \
|
|
# Use variable indirection here so that we can have variable
|
|
# Use variable indirection here so that we can have variable
|
|
# names with fun chars in them like equal signs
|
|
# names with fun chars in them like equal signs
|
|
define check-tool-var
|
|
define check-tool-var
|
|
|
|
+ifeq ($(filter clean CLEAN_%,$(MAKECMDGOALS)),)
|
|
_v = $(2)_$(3)
|
|
_v = $(2)_$(3)
|
|
ifndef $$(_v)
|
|
ifndef $$(_v)
|
|
$$(_v) := $$(call $(1),$(subst %, ,$(3)))
|
|
$$(_v) := $$(call $(1),$(subst %, ,$(3)))
|
|
export $$(_v)
|
|
export $$(_v)
|
|
endif
|
|
endif
|
|
|
|
+endif
|
|
endef
|
|
endef
|
|
|
|
|
|
# Usage: check-gcc-var,<flag>
|
|
# Usage: check-gcc-var,<flag>
|