From: simonmar Date: Fri, 10 Jan 2003 10:55:24 +0000 (+0000) Subject: [project @ 2003-01-10 10:55:24 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~1274 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=f7f6daafe65bd7b7e1aea3b9ba72aba1e8cecc7a;p=ghc-hetmet.git [project @ 2003-01-10 10:55:24 by simonmar] Only add -package readline if $(GhcLibsWithReadline) == YES This isn't really the correct solution, since we actually want to know whether the bootstrapping compiler has readline, not this one, but since the most common bootstrapping compiler is going to be the stage1 compiler in this tree it's a good guess that GhcLibsWithReadline is correct. --- diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index ee0473c..982ac59 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -277,7 +277,10 @@ ifeq "$(GhcWithInterpreter) $(bootstrapped)" "YES YES" # Yes, include the interepreter, readline, and Template Haskell extensions SRC_HC_OPTS += -DGHCI -package haskell-src ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -SRC_HC_OPTS += -package unix -package readline +SRC_HC_OPTS += -package unix +ifeq "$(GhcLibsWithReadline)" "YES" +SRC_HC_OPTS += -package readline +endif endif ALL_DIRS += ghci else