]> git.ipfire.org Git - thirdparty/gcc.git/blame - boehm-gc/threadlibs.c
re PR target/78594 (Bug in November 11th, 2016 change to rs6000.md)
[thirdparty/gcc.git] / boehm-gc / threadlibs.c
CommitLineData
4109fe85 1# include "gc_config_macros.h"
9110a741 2# include "private/gcconfig.h"
73ffefd0
TT
3# include <stdio.h>
4
5int main()
6{
9110a741 7# if defined(GC_USE_LD_WRAP)
30c3de1f 8 printf("-Wl,--wrap -Wl,dlopen "
402823c4 9 "-Wl,--wrap -Wl,pthread_create -Wl,--wrap -Wl,pthread_join "
9110a741
BM
10 "-Wl,--wrap -Wl,pthread_detach "
11 "-Wl,--wrap -Wl,pthread_sigmask -Wl,--wrap -Wl,sleep\n");
12# endif
4c7726b1 13# if defined(GC_LINUX_THREADS) || defined(GC_IRIX_THREADS) \
54f28c21 14 || defined(GC_SOLARIS_PTHREADS) \
b260c71f
ST
15 || defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS) \
16 || defined(GC_GNU_THREADS)
4c7726b1 17 printf("-lpthread\n");
93002327 18# endif
54f28c21
BM
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
4c7726b1 26# if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)
20bbd3cd
TT
27 printf("-lpthread -lrt\n");
28# endif
79f777fd 29# if defined(GC_SOLARIS_THREADS) && !defined(GC_SOLARIS_PTHREADS)
73ffefd0 30 printf("-lthread -ldl\n");
30c3de1f
JS
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");
73ffefd0
TT
42# endif
43 return 0;
44}
45