Handle giving several options in LDFLAGS and CPPFLAGS correctly.

This commit is contained in:
bringert
2007-12-20 15:55:26 +00:00
parent 5cb91cd027
commit 9999634574

View File

@@ -42,11 +42,11 @@ ifeq ("$(READLINE)","readline")
endif
ifneq ("$(CPPFLAGS)","")
GHCFLAGS += -optP'$(CPPFLAGS)'
GHCFLAGS += $(addprefix -optP, $(CPPFLAGS))
endif
ifneq ("$(LDFLAGS)","")
GHCFLAGS += -optl'$(LDFLAGS)'
GHCFLAGS += $(addprefix -optl, $(LDFLAGS))
endif
ifeq ("$(INTERRUPT)","yes")