summaryrefslogtreecommitdiff
path: root/boehm-gc/threadlibs.c
diff options
context:
space:
mode:
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;
}