From 90af5e7b48c2f0ec74891c1399d46781d078484a Mon Sep 17 00:00:00 2001 From: panne Date: Tue, 5 Aug 2003 07:25:56 +0000 Subject: [PATCH] [project @ 2003-08-05 07:25:56 by panne] * Unbreak bootstrapping with GHC >= 6.1 * Nuked CVS keywords, you'll hate them when merging... --- ghc/utils/genprimopcode/Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ghc/utils/genprimopcode/Makefile b/ghc/utils/genprimopcode/Makefile index 8c3da0f..2b1ecd9 100644 --- a/ghc/utils/genprimopcode/Makefile +++ b/ghc/utils/genprimopcode/Makefile @@ -1,15 +1,16 @@ -# ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.8 2002/09/09 11:44:13 simonmar Exp $ - TOP=../.. include $(TOP)/mk/boilerplate.mk -HS_PROG = genprimopcode +HS_PROG = genprimopcode -ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi) +ghc_lt_504 = $(shell if (test $(GhcCanonVersion) -lt 504); then echo YES; else echo NO; fi) +ifeq "$(ghc_lt_504)" "YES" +SRC_HC_OPTS += -package text +endif -ifeq "$(ghc_ge_504)" "NO" -SRC_HC_OPTS += -package text +ghc_ge_601 = $(shell if (test $(GhcCanonVersion) -ge 601); then echo YES; else echo NO; fi) +ifeq "$(ghc_ge_601)" "YES" +SRC_HC_OPTS += -package parsec endif # genprimopcode is needed to boot in ghc/compiler... -- 1.7.10.4