integrated Raymond Wiker's patches to port RUN-PROGRAM from CMU CL and
[sbcl.git] / src / runtime / Config.x86-bsd
index 170aab8..49d74b6 100644 (file)
@@ -12,7 +12,11 @@ ASSEM_SRC = x86-assem.S
 ARCH_SRC = x86-arch.c
 
 OS_SRC = bsd-os.c os-common.c undefineds.c
-OS_LINK_FLAGS=-static
+# Until version 0.6.7.3, we used "OS_LINK_FLAGS=-static" here, which
+# worked fine for most things, but LOAD-FOREIGN & friends require
+# dlopen() etc., which in turn depend on dynamic linking of the
+# runtime.
+OS_LINK_FLAGS=-dynamic -export-dynamic
 OS_LIBS=-lm # -ldl
 
 GC_SRC= gencgc.c