aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/threadlibs.c
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@waitaki.otago.ac.nz>2001-05-21 08:35:14 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2001-05-21 09:35:14 +0100
commit9110a741e35c54e46c00662ddc420575376c5947 (patch)
tree67e9db3b367c46dfbcccda8278d06da72494187d /boehm-gc/threadlibs.c
parenta6951ca5dee8ed05749cdc697767910aebaedcc0 (diff)
Imported version version 6.0alpha7.
* README, README.Mac, README.OS2, README.QUICK, README.alpha, README.amiga, README.debugging, README.dj, README.hp, README.linux, README.rs6000, README.sgi, README.solaris2, README.uts, README.win32, SCoptions.amiga, backptr.h, barrett_diagram, dbg_mlc.h, gc.h, gc.man, gc_alloc.h, gc_cpp.h, gc_hdrs.h, gc_mark.h, gc_priv.h, gc_private.h, gc_typed.h, gcconfig.h, hpux_irix_threads.c, makefile.depend, nursery.c, solaris_threads.h, test.c, test_cpp.cc, weakpointer.h, cord/README, cord/SCOPTIONS.amiga, cord/SMakefile.amiga, cord/cord.h, cord/ec.h, cord/gc.h, cord/private/cord_pos.h, include/backptr.h, include/gc_copy_descr.h, include/gc_nursery.h: Remove obsolete/moved files. From-SVN: r42379
Diffstat (limited to 'boehm-gc/threadlibs.c')
-rw-r--r--boehm-gc/threadlibs.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/boehm-gc/threadlibs.c b/boehm-gc/threadlibs.c
index 7379454c420..0ac54510cc3 100644
--- a/boehm-gc/threadlibs.c
+++ b/boehm-gc/threadlibs.c
@@ -1,16 +1,16 @@
-# include "gcconfig.h"
+# include "private/gcconfig.h"
# include <stdio.h>
int main()
{
-# if defined(LINUX_THREADS)
-# ifdef USE_LD_WRAP
+# if defined(GC_USE_LD_WRAP)
printf("-Wl,--wrap -Wl,read -Wl,--wrap -Wl,dlopen "
"-Wl,--wrap -Wl,pthread_create -Wl,--wrap -Wl,pthread_join "
- "-Wl,--wrap -Wl,pthread_sigmask -lpthread -ldl\n");
-# else
- printf("-lpthread -ldl\n");
-# endif
+ "-Wl,--wrap -Wl,pthread_detach "
+ "-Wl,--wrap -Wl,pthread_sigmask -Wl,--wrap -Wl,sleep\n");
+# endif
+# if defined(LINUX_THREADS)
+ printf("-lpthread\n");
# endif
# if defined(IRIX_THREADS)
printf("-lpthread\n");
@@ -21,6 +21,9 @@ int main()
# ifdef SOLARIS_THREADS
printf("-lthread -ldl\n");
# endif
+# ifdef GC_OSF1_THREADS
+ printf("-lpthread -lrt\n");
+# endif
return 0;
}