Bump date stamp to 20131126
[official-gcc.git] / boehm-gc / threadlibs.c
blob69fcc5e90ab588eed22913b99f6b5891337d20a9
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_SOLARIS_PTHREADS) \
15 || defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS) \
16 || defined(GC_GNU_THREADS)
17 printf("-lpthread\n");
18 # endif
19 # if defined(GC_FREEBSD_THREADS)
20 # if (__FREEBSD_version >= 500000)
21 printf("-lpthread\n");
22 # else
23 printf("-pthread\n");
24 # endif
25 # endif
26 # if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)
27 printf("-lpthread -lrt\n");
28 # endif
29 # if defined(GC_SOLARIS_THREADS) && !defined(GC_SOLARIS_PTHREADS)
30 printf("-lthread -ldl\n");
31 # endif
32 # if defined(GC_WIN32_THREADS) && defined(CYGWIN32)
33 printf("-lpthread\n");
34 # endif
35 # if defined(GC_OSF1_THREADS)
36 printf("-pthread -lrt"); /* DOB: must be -pthread, not -lpthread */
37 # endif
38 /* You need GCC 3.0.3 to build this one! */
39 /* DG/UX native gcc doesnt know what "-pthread" is */
40 # if defined(GC_DGUX386_THREADS)
41 printf("-ldl -pthread\n");
42 # endif
43 return 0;