From: simonmar Date: Wed, 14 Feb 2001 09:50:00 +0000 (+0000) Subject: [project @ 2001-02-14 09:50:00 by simonmar] X-Git-Tag: Approximately_9120_patches~2636 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=7c9d400ad90d491e63df970646de0d62443e1a40;p=ghc-hetmet.git [project @ 2001-02-14 09:50:00 by simonmar] add -ldl to SRC_HC_OPTS if GhcWithInterpreter=YES and HaveLibDL=YES. --- diff --git a/mk/config.mk.in b/mk/config.mk.in index 7327d2a..efb315b 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -188,10 +188,15 @@ else GhcWithNativeCodeGen=NO endif +HaveLibDL = @HaveLibDL@ + # Include GHCi in the compiler. Default to NO for the time being. ifneq "$(findstring $(HostOS_CPP), linux solaris freebsd netbsd openbsd)" "" GhcWithInterpreter=YES +ifeq "$(HaveLibDL)" "YES" +SRC_HC_OPTS += -ldl +endif else GhcWithInterpreter=NO endif