]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # include "gc_config_macros.h" |
2 | # include "private/gcconfig.h" | |
3 | # include <stdio.h> | |
4 | ||
5 | int 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_DARWIN_THREADS) || defined(GC_AIX_THREADS) \ | |
15 | || defined(GC_GNU_THREADS) | |
16 | # ifdef GC_USE_DLOPEN_WRAP | |
17 | printf("-ldl "); | |
18 | # endif | |
19 | printf("-lpthread\n"); | |
20 | # endif | |
21 | # if defined(GC_FREEBSD_THREADS) | |
22 | # ifdef GC_USE_DLOPEN_WRAP | |
23 | printf("-ldl "); | |
24 | # endif | |
25 | # if (__FREEBSD_version >= 500000) | |
26 | printf("-lpthread\n"); | |
27 | # else | |
28 | printf("-pthread\n"); | |
29 | # endif | |
30 | # endif | |
31 | # if defined(GC_NETBSD_THREADS) | |
32 | printf("-lpthread -lrt\n"); | |
33 | # endif | |
34 | ||
35 | # if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS) | |
36 | printf("-lpthread -lrt\n"); | |
37 | # endif | |
38 | # if defined(GC_SOLARIS_THREADS) | |
39 | printf("-lthread -lposix4\n"); | |
40 | /* Is this right for recent versions? */ | |
41 | # endif | |
42 | # if defined(GC_WIN32_THREADS) && defined(CYGWIN32) | |
43 | printf("-lpthread\n"); | |
44 | # endif | |
45 | # if defined(GC_WIN32_PTHREADS) | |
46 | # ifdef PTW32_STATIC_LIB | |
47 | /* assume suffix s for static version of the win32 pthread library */ | |
48 | printf("-lpthreadGC2s -lws2_32\n"); | |
49 | # else | |
50 | printf("-lpthreadGC2\n"); | |
51 | # endif | |
52 | # endif | |
53 | # if defined(GC_OSF1_THREADS) | |
54 | printf("-pthread -lrt"); /* DOB: must be -pthread, not -lpthread */ | |
55 | # endif | |
56 | /* You need GCC 3.0.3 to build this one! */ | |
57 | /* DG/UX native gcc doesnt know what "-pthread" is */ | |
58 | # if defined(GC_DGUX386_THREADS) | |
59 | printf("-ldl -pthread\n"); | |
60 | # endif | |
61 | return 0; | |
62 | } | |
63 |