X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=libraries%2FMakefile;h=1fef7e3893ed6067876649d7093318a5211f39f3;hb=dce65c102b136ee9eb57fadf4cc3fd7a8931d074;hp=342364400eb5949ccb63e50973efe96a9b99153b;hpb=0852e11a68225cd24e2f3170ce184d4b35b94860;p=ghc-hetmet.git diff --git a/libraries/Makefile b/libraries/Makefile index 3423644..1fef7e3 100644 --- a/libraries/Makefile +++ b/libraries/Makefile @@ -195,6 +195,12 @@ else libsubdir = $$compiler/lib/$$pkgid endif +# We rely on all the CONFIGURE_ARGS being quoted with '...', and there +# being no 's inside the values. +FLAGGED_CONFIGURE_ARGS = $(subst $(space)',\ + $(space)--configure-option=',\ + $(space)$(CONFIGURE_ARGS)) + $(foreach SUBDIR,$(SUBDIRS), \ stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).$(SUBDIR)): \ stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).%: %/setup/Setup @@ -211,7 +217,7 @@ stamp/configure.library.build$(CONFIGURE_STAMP_EXTRAS).%: %/setup/Setup --datasubdir=ghc \ --haddock-args="--use-contents=../index.html \ --use-index=../doc-index.html" \ - $(addprefix --configure-option=,$(CONFIGURE_ARGS)) \ + $(FLAGGED_CONFIGURE_ARGS) \ --configure-option=--with-cc=$(CC) ) \ && touch $@ || touch $*/unbuildable # We don't touch $@ if configure failed as we would prefer to try