source: trunk/gc6.8/threadlibs.c@ 332

Last change on this file since 332 was 132, checked in by cinc, 19 years ago

Boehm-Demers-Weiser garbage collector. Single-threaded for OS/2.

File size: 1.4 KB
Line 
1# include "gc_config_macros.h"
2# include "private/gcconfig.h"
3# include <stdio.h>
4
5int main()
6{
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 printf("-lpthread\n");
17# endif
18# if defined(GC_FREEBSD_THREADS)
19# if (__FREEBSD_version >= 500000)
20 printf("-lpthread\n");
21# else
22 printf("-pthread\n");
23# endif
24# endif
25# if defined(GC_NETBSD_THREADS)
26 printf("-lpthread -lrt\n");
27# endif
28
29# if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)
30 printf("-lpthread -lrt\n");
31# endif
32# if defined(GC_SOLARIS_THREADS) && !defined(GC_SOLARIS_PTHREADS)
33 printf("-lthread -ldl\n");
34# endif
35# if defined(GC_WIN32_THREADS) && defined(CYGWIN32)
36 printf("-lpthread\n");
37# endif
38# if defined(GC_OSF1_THREADS)
39 printf("-pthread -lrt"); /* DOB: must be -pthread, not -lpthread */
40# endif
41 /* You need GCC 3.0.3 to build this one! */
42 /* DG/UX native gcc doesnt know what "-pthread" is */
43# if defined(GC_DGUX386_THREADS)
44 printf("-ldl -pthread\n");
45# endif
46 return 0;
47}
48
Note: See TracBrowser for help on using the repository browser.