[multiple changes]
[official-gcc.git] / boehm-gc / threadlibs.c
blob264b7240cbe8d5fa88c590ed5f6e21a88d7a6c9b
1 # include "gc_config_macros.h"
2 # include "private/gcconfig.h"
3 # include <stdio.h>
5 int main()
7 # if defined(GC_USE_LD_WRAP)
8 printf("-Wl,--wrap -Wl,dlopen "
9 "-Wl,--wrap -Wl,pthread_create -Wl,--wrap -Wl,pthread_join "
10 "-Wl,--wrap -Wl,pthread_detach "
11 "-Wl,--wrap -Wl,pthread_sigmask -Wl,--wrap -Wl,sleep\n");
12 # endif
13 # if defined(GC_LINUX_THREADS) || defined(GC_IRIX_THREADS) \
14 || defined(GC_FREEBSD_THREADS) || defined(GC_SOLARIS_PTHREADS) \
15 || defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)
16 printf("-lpthread\n");
17 # endif
18 # if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)
19 printf("-lpthread -lrt\n");
20 # endif
21 # if defined(GC_SOLARIS_THREADS) && !defined(GC_SOLARIS_PTHREADS)
22 printf("-lthread -ldl\n");
23 # endif
24 # if defined(GC_WIN32_THREADS) && defined(CYGWIN32)
25 printf("-lpthread\n");
26 # endif
27 # if defined(GC_OSF1_THREADS)
28 printf("-pthread -lrt"); /* DOB: must be -pthread, not -lpthread */
29 # endif
30 /* You need GCC 3.0.3 to build this one! */
31 /* DG/UX native gcc doesnt know what "-pthread" is */
32 # if defined(GC_DGUX386_THREADS)
33 printf("-ldl -pthread\n");
34 # endif
35 return 0;