forked from GitHub/gf-core
Add optP/optl flags only when needed, and last to avoid ghc 6.2.1
Add optP/optl flags only when needed, and last to avoid ghc 6.2.1 problems.
This commit is contained in:
12
src/Makefile
12
src/Makefile
@@ -3,8 +3,7 @@ include config.mk
|
||||
|
||||
GHMAKE=$(GHC) --make
|
||||
GHCXMAKE=ghcxmake
|
||||
#GHCFLAGS= -package util -fglasgow-exts -optP'$(CPPFLAGS)' -optl'$(LDFLAGS)'
|
||||
GHCFLAGS= -package util -fglasgow-exts
|
||||
GHCFLAGS= -fglasgow-exts -package util
|
||||
GHCOPTFLAGS=-O2
|
||||
GHCFUDFLAG=
|
||||
JAVAFLAGS=-target 1.4 -source 1.4
|
||||
@@ -30,6 +29,15 @@ ifeq ("$(READLINE)","readline")
|
||||
GHCFLAGS += -package readline -DUSE_READLINE
|
||||
endif
|
||||
|
||||
ifneq ("$(CPPFLAGS)","")
|
||||
GHCFLAGS += -optP'$(CPPFLAGS)'
|
||||
endif
|
||||
|
||||
ifneq ("$(LDFLAGS)","")
|
||||
GHCFLAGS += -optl'$(LDFLAGS)'
|
||||
endif
|
||||
|
||||
|
||||
ifeq ("$(ENABLE_JAVA)", "yes")
|
||||
BUILD_JAR=jar
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user