From 7c9d400ad90d491e63df970646de0d62443e1a40 Mon Sep 17 00:00:00 2001 From: simonmar Date: Wed, 14 Feb 2001 09:50:00 +0000 Subject: [PATCH] [project @ 2001-02-14 09:50:00 by simonmar] add -ldl to SRC_HC_OPTS if GhcWithInterpreter=YES and HaveLibDL=YES. --- mk/config.mk.in | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 1.7.10.4