summaryrefslogtreecommitdiff
path: root/threadlibs.c
diff options
context:
space:
mode:
Diffstat (limited to 'threadlibs.c')
-rw-r--r--threadlibs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/threadlibs.c b/threadlibs.c
index eaf6d9d..247d3c6 100644
--- a/threadlibs.c
+++ b/threadlibs.c
@@ -4,13 +4,14 @@
int main()
{
# if defined(GC_USE_LD_WRAP)
- printf("-Wl,--wrap -Wl,read -Wl,--wrap -Wl,dlopen "
+ printf("-Wl,--wrap -Wl,dlopen "
"-Wl,--wrap -Wl,pthread_create -Wl,--wrap -Wl,pthread_join "
"-Wl,--wrap -Wl,pthread_detach "
"-Wl,--wrap -Wl,pthread_sigmask -Wl,--wrap -Wl,sleep\n");
# endif
# if defined(GC_LINUX_THREADS) || defined(GC_IRIX_THREADS) \
- || defined(GC_FREEBSD_THREADS) || defined(GC_SOLARIS_PTHREADS)
+ || defined(GC_FREEBSD_THREADS) || defined(GC_SOLARIS_PTHREADS) \
+ || defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)
printf("-lpthread\n");
# endif
# if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)
@@ -23,7 +24,7 @@ int main()
printf("-lpthread\n");
# endif
# if defined(GC_OSF1_THREADS)
- printf("-lpthread -lrt");
+ printf("-pthread -lrt"); /* DOB: must be -pthread, not -lpthread */
# endif
/* You need GCC 3.0.3 to build this one! */
/* DG/UX native gcc doesnt know what "-pthread" is */