summaryrefslogtreecommitdiff
path: root/threadlibs.c
diff options
context:
space:
mode:
Diffstat (limited to 'threadlibs.c')
-rw-r--r--threadlibs.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/threadlibs.c b/threadlibs.c
index 7379454..0ac5451 100644
--- a/threadlibs.c
+++ b/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;
}