chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] PATCH: fix pthread on BSD


From: Timo Myyrä
Subject: [Chicken-hackers] PATCH: fix pthread on BSD
Date: Wed, 28 Sep 2011 19:34:54 +0300

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]