# -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.6 2001/08/01 20:37:00 qrczak Exp $
+# $Id: Makefile,v 1.8 2002/09/09 11:44:13 simonmar Exp $
TOP=../..
include $(TOP)/mk/boilerplate.mk
HS_PROG = genprimopcode
-SRC_HC_OPTS += -syslib text
-# TODO: remove -H80M when the strictness analyser is working again.
-Main_HC_OPTS = -H80M
+
+ghc_ge_504 = $(shell if (test $(GhcCanonVersion) -ge 504); then echo YES; else echo NO; fi)
+
+ifeq "$(ghc_ge_504)" "NO"
+SRC_HC_OPTS += -package text
+endif
# genprimopcode is needed to boot in ghc/compiler...
ifneq "$(BootingFromHc)" "YES"