Hi,

BSD's seem to use -pthread flag instead of -lpthread to use POSIX threads.
You can verify this by looking the -pthread flag from gcc man page of
BSD systems.

Here's patch for Makefile.bsd:

--- Makefile.bsd.orig   Wed Sep 28 19:26:44 2011
+++ Makefile.bsd        Wed Sep 28 19:27:04 2011
@@ -57,7 +57,7 @@
 LINKER_LINK_SHARED_DLOADABLE_OPTIONS = -shared
-Wl,-R"$(RUNTIME_LINKER_PATH)" -Wl,-L.
 LINKER_LINK_SHARED_PROGRAM_OPTIONS = -Wl,-R"$(RUNTIME_LINKER_PATH)"
 LIBCHICKEN_SO_LINKER_OPTIONS =
-Wl,-soname,lib$(PROGRAM_PREFIX)chicken$(PROGRAM_SUFFIX).so$(SONAME_VERSION)
-LIBRARIES = -lm -lpthread
+LIBRARIES = -lm -pthread
 NEEDS_RELINKING = yes
 USES_SONAME = yes

_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to