From 6590edbd489dd39dfd666c3bfc0f7bd2ee45bbfc Mon Sep 17 00:00:00 2001 From: bringert Date: Thu, 20 Dec 2007 15:55:26 +0000 Subject: [PATCH] Handle giving several options in LDFLAGS and CPPFLAGS correctly. --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 35e776bfc..7c0273485 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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")