0.9.8.7:
[sbcl.git] / src / runtime / Config.x86-linux
index 80ba64e..693cd74 100644 (file)
@@ -28,7 +28,14 @@ OS_SRC = linux-os.c x86-linux-os.c
 # interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
 # working on one and it would be a nice thing to have.)
 LINKFLAGS += -Wl,--export-dynamic
-OS_LIBS = -lpthread -ldl
+OS_LIBS = -ldl
+
+OS_LIBS += $(shell if grep LISP_FEATURE_SB_THREAD genesis/config.h \
+                      > /dev/null 2>&1; \
+                   then echo "-lpthread"; fi)
 
 GC_SRC = gencgc.c
 
+# Nothing to do for after-grovel-headers.
+.PHONY: after-grovel-headers
+after-grovel-headers: