[project @ 2002-11-06 11:34:34 by simonpj]
[ghc-hetmet.git] / ghc / utils / genprimopcode / Makefile
index 753fd94..8c3da0f 100644 (file)
@@ -1,11 +1,16 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.5 2001/03/23 16:36:22 simonmar 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
+
+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"