add -ldl to SRC_HC_OPTS if GhcWithInterpreter=YES and HaveLibDL=YES.
GhcWithNativeCodeGen=NO
endif
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
# 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
else
GhcWithInterpreter=NO
endif