From 1c7a841f836d3be3e21af98dd7a84079ad1096b3 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 30 Jul 2008 11:47:13 +0000 Subject: [PATCH] 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. --- mk/config.mk.in | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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) -- 1.7.10.4