From: Ian Lynagh Date: Wed, 30 Jul 2008 11:47:13 +0000 (+0000) Subject: Fix the way we pass GMP_INCLUDE_DIRS to hsc2hs; spotted by Andres Loh X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=1c7a841f836d3be3e21af98dd7a84079ad1096b3 Fix the way we pass GMP_INCLUDE_DIRS to hsc2hs; spotted by Andres Loh We were still building the flags in Haskell list syntax, but we now pass the arguments directly rather than constructing a Haskell program with them. --- diff --git a/mk/config.mk.in b/mk/config.mk.in index f42e5fa..839fe29 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -967,14 +967,7 @@ SRC_CC_OPTS += -G0 endif SRC_HSC2HS_OPTS += $(addprefix --cflag=,$(filter-out -O,$(SRC_CC_OPTS))) - -# Given -# foo bar -# make -# :\"-Ifoo\":\"-Ibar\" -nothing= -space=$(nothing) $(nothing) -SRC_HSC2HS_OPTS += $(subst $(space),,$(foreach d,$(GMP_INCLUDE_DIRS),:\"-I$(d)\")) +SRC_HSC2HS_OPTS += $(foreach d,$(GMP_INCLUDE_DIRS),-I$(d)) #----------------------------------------------------------------------------- # GMP Library (version 2.0.x or above)