summaryrefslogtreecommitdiff
path: root/boehm-gc/threadlibs.c
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@gcc.gnu.org>2000-04-19 11:10:01 +0100
committerBryce McKinlay <bryce@gcc.gnu.org>2000-04-19 11:10:01 +0100
commit93002327db5e5f466de60dc3f8c876cf9a56e183 (patch)
treefec69f60b37ca7ee4a47582f914dabbc7b3ee0c4 /boehm-gc/threadlibs.c
parent5e787f078df8900b34981443e9f968fd5c3b039c (diff)
downloadgcc-93002327db5e5f466de60dc3f8c876cf9a56e183.tar.gz
Imported version version 5.0alpha6.
* acinclude.m4: Bump version to 5.0a6. * configure.in: Don't use alpha_mach_dep.s. * include/private/config.h, irix_threads.c gc_watcom.asm: Delete obsolete files. From-SVN: r33251
Diffstat (limited to 'boehm-gc/threadlibs.c')
-rw-r--r--boehm-gc/threadlibs.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/boehm-gc/threadlibs.c b/boehm-gc/threadlibs.c
index df4eb77bb1d..b2e6a10b0b9 100644
--- a/boehm-gc/threadlibs.c
+++ b/boehm-gc/threadlibs.c
@@ -3,7 +3,16 @@
int main()
{
-# if defined(IRIX_THREADS) || defined(LINUX_THREADS)
+# if defined(LINUX_THREADS)
+# ifdef USE_LD_WRAP
+ printf("-Wl,\"--wrap read\" -Wl,\"--wrap dlopen\" "
+ "-Wl,\"--wrap pthread_create\" -Wl,\"--wrap pthread_join\" "
+ "-Wl,\"--wrap pthread_sigmask\" -lpthread\n");
+# else
+ printf("-lpthread\n");
+# endif
+# endif
+# if defined(IRIX_THREADS)
printf("-lpthread\n");
# endif
# if defined(HPUX_THREADS)