[project @ 2001-02-14 09:50:00 by simonmar]
authorsimonmar <unknown>
Wed, 14 Feb 2001 09:50:00 +0000 (09:50 +0000)
committersimonmar <unknown>
Wed, 14 Feb 2001 09:50:00 +0000 (09:50 +0000)
add -ldl to SRC_HC_OPTS if GhcWithInterpreter=YES and HaveLibDL=YES.

mk/config.mk.in

index 7327d2a..efb315b 100644 (file)
@@ -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