summaryrefslogtreecommitdiff
path: root/mk/custom-settings.mk
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2012-11-23 17:54:00 +0100
committerGabor Greif <ggreif@gmail.com>2013-02-15 10:06:36 +0100
commitb2a9fbfe38e5c18f367d020c36c45a1b10038149 (patch)
tree140a6a2b4de156e9ff34ccdb16f658237e9b7b78 /mk/custom-settings.mk
parent16389d13d252a7a173095478dd3a393b3f69b475 (diff)
downloadhaskell-b2a9fbfe38e5c18f367d020c36c45a1b10038149.tar.gz
Allow different customizations per cross target
by obtaining GlobalCrossCompilePrefix from mk/config.mk and using that to include mk/$(GlobalCrossCompilePrefix)build.mk instead of mk/build.mk when present. Note: GlobalCrossCompilePrefix is basically the same as CrossCompilePrefix, but does not depend on $(phase).
Diffstat (limited to 'mk/custom-settings.mk')
-rw-r--r--mk/custom-settings.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/custom-settings.mk b/mk/custom-settings.mk
index e64bb36561..e5e564ca00 100644
--- a/mk/custom-settings.mk
+++ b/mk/custom-settings.mk
@@ -5,7 +5,7 @@ ifeq "$(Validating)" "YES"
include mk/validate-settings.mk
-include mk/validate.mk
else
--include mk/build.mk
+-include $(firstword $(wildcard mk/$(GlobalCrossCompilePrefix)build.mk) mk/build.mk)
endif
ifeq "$(BINDIST)" "YES"