summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-11-25 13:34:43 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-12-22 21:18:52 (GMT)
commit3a26dafbd19b86d3f36a2e48e44d130accaa2634 (patch)
tree4e4dd1829051a29cdd97ccb6368671ca80d62828 /Makefile
parente7b9a210560fe05b44c33b3624617b2d581281e7 (diff)
downloadmxe-3a26dafbd19b86d3f36a2e48e44d130accaa2634.zip
mxe-3a26dafbd19b86d3f36a2e48e44d130accaa2634.tar.gz
mxe-3a26dafbd19b86d3f36a2e48e44d130accaa2634.tar.bz2
add virtual toolchain package cc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5474156..80f42ab 100644
--- a/Makefile
+++ b/Makefile
@@ -418,6 +418,9 @@ $(PREFIX)/installed/print-git-oneline-$(GIT_HEAD): | $(PREFIX)/installed/.gitkee
# - downloads and `build-pkg` use both explicit and implicit deps
# - don't depend on `disabled` rules but do depend on virtual pkgs
+# cross libraries depend on virtual toolchain package, variable used
+# in `cleanup-deps-style` rule below
+CROSS_COMPILER := cc
MXE_REQS_PKGS =
# distinguish between deliberately empty rules and disabled ones
@@ -884,9 +887,9 @@ cleanup-style:
cleanup-deps-style:
@grep '(PKG)_DEPS.*\\' $(foreach 1,$(PKGS),$(PKG_MAKEFILES)) > $(TOP_DIR)/tmp-$@-pre
@$(foreach PKG,$(PKGS), \
- $(if $(call lne,$(sort $(filter-out gcc,$($(PKG)_DEPS))),$(filter-out gcc,$($(PKG)_DEPS))), \
+ $(if $(call lne,$(sort $(filter-out $(CROSS_COMPILER),$($(PKG)_DEPS))),$(filter-out $(CROSS_COMPILER),$($(PKG)_DEPS))), \
$(info [cleanup] $(PKG)) \
- $(SED) -i 's/^\([^ ]*_DEPS *:=\)[^$$]*$$/\1 '"$(strip $(filter gcc,$($(PKG)_DEPS)) $(sort $(filter-out gcc,$($(PKG)_DEPS))))"'/' '$(call PKG_MAKEFILES,$(PKG))'; \
+ $(SED) -i 's/^\([^ ]*_DEPS *:=\)[^$$]*$$/\1 '"$(strip $(filter $(CROSS_COMPILER),$($(PKG)_DEPS)) $(sort $(filter-out $(CROSS_COMPILER),$($(PKG)_DEPS))))"'/' '$(call PKG_MAKEFILES,$(PKG))'; \
))
@grep '(PKG)_DEPS.*\\' $(foreach 1,$(PKGS),$(PKG_MAKEFILES)) > $(TOP_DIR)/tmp-$@-post
@diff -u $(TOP_DIR)/tmp-$@-pre $(TOP_DIR)/tmp-$@-post >/dev/null \