Handle giving several options in LDFLAGS and CPPFLAGS correctly.

This commit is contained in:
bringert
2007-12-20 15:55:26 +00:00
parent 701c57f25a
commit 6590edbd48

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")