From: simonmar Date: Fri, 30 Jun 2000 09:45:16 +0000 (+0000) Subject: [project @ 2000-06-30 09:45:16 by simonmar] X-Git-Tag: Approximately_9120_patches~4108 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=5970d3a2e10931fcf4905bae7756f0df6c158c03;p=ghc-hetmet.git [project @ 2000-06-30 09:45:16 by simonmar] Use GhcMinVersion to pick the correct cmdline args to build the driver. --- diff --git a/ghc/driver/Makefile b/ghc/driver/Makefile index 2ee5731..19671f9 100644 --- a/ghc/driver/Makefile +++ b/ghc/driver/Makefile @@ -1,5 +1,5 @@ #----------------------------------------------------------------------------- -# $Id: Makefile,v 1.38 2000/06/28 14:00:37 simonmar Exp $ +# $Id: Makefile,v 1.39 2000/06/30 09:45:16 simonmar Exp $ # TOP=.. @@ -10,7 +10,12 @@ ifeq "$(GhcWithHscBuiltViaC)" "YES" HC=$(GHC_INPLACE) endif -SRC_HC_OPTS += -fglasgow-exts -cpp -syslib concurrent -syslib posix -syslib text +ghc_406_at_least = $(shell expr "$(GhcMinVersion)" \> 6) +ifeq "$(ghc_406_at_least)" "1" +SRC_HC_OPTS += -fglasgow-exts -cpp -package concurrent -package posix -package text +else +SRC_HC_OPTS += -fglasgow-exts -cpp -syslib concurrent -syslib posix -syslib misc +endif HS_PROG = ghc-$(ProjectVersion) HS_SRCS = Config.hs Package.hs Main.hs