forked from GitHub/gf-core
Handle giving several options in LDFLAGS and CPPFLAGS correctly.
This commit is contained in:
@@ -42,11 +42,11 @@ ifeq ("$(READLINE)","readline")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ("$(CPPFLAGS)","")
|
ifneq ("$(CPPFLAGS)","")
|
||||||
GHCFLAGS += -optP'$(CPPFLAGS)'
|
GHCFLAGS += $(addprefix -optP, $(CPPFLAGS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ("$(LDFLAGS)","")
|
ifneq ("$(LDFLAGS)","")
|
||||||
GHCFLAGS += -optl'$(LDFLAGS)'
|
GHCFLAGS += $(addprefix -optl, $(LDFLAGS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ("$(INTERRUPT)","yes")
|
ifeq ("$(INTERRUPT)","yes")
|
||||||
|
|||||||
Reference in New Issue
Block a user