Fix the way we pass GMP_INCLUDE_DIRS to hsc2hs; spotted by Andres Loh
authorIan Lynagh <igloo@earth.li>
Wed, 30 Jul 2008 11:47:13 +0000 (11:47 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 30 Jul 2008 11:47:13 +0000 (11:47 +0000)
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.

mk/config.mk.in

index f42e5fa..839fe29 100644 (file)
@@ -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)