# dlopen() etc., which in turn depend on dynamic linking of the
# runtime.
LINKFLAGS += -dynamic -export-dynamic
+
+# use libthr (1:1 threading). libpthread (m:n threading) does not work.
+ifdef LISP_FEATURE_SB_THREAD
+ #OS_LIBS += -lpthread
+ OS_LIBS += -lthr
+endif
+
+CFLAGS += -fno-omit-frame-pointer