Commit 1c7a841f authored by Ian Lynagh's avatar Ian Lynagh

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.
parent dc25c00f
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment