--- a/src/runtime/Config.x86-64-netbsd
+++ b/src/runtime/Config.x86-64-netbsd
@@ -14,9 +14,14 @@
 ASSEM_SRC += ldso-stubs.S
 OS_LIBS += -lutil
 
+ifdef LISP_FEATURE_SB_THREAD
+  OS_LIBS += -lpthread -lrt
+endif
+
 # XXX why do all the other Configs set LINKFLAGS instead of LDFLAGS?
 # LINKFLAGS is only used in src/runtime/GNUmakefile, this causes the
 # dladdr test in tools-for-build/ to fail.
 
 LINKFLAGS += -export-dynamic
 LDFLAGS += -export-dynamic
+