1 # include "gc_config_macros.h"
2 # include "private/gcconfig.h"
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");
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
19 printf("-lpthread\n");
21 # if defined(GC_FREEBSD_THREADS)
22 # ifdef GC_USE_DLOPEN_WRAP
25 # if (__FREEBSD_version >= 500000)
26 printf("-lpthread\n");
31 # if defined(GC_NETBSD_THREADS)
32 printf("-lpthread -lrt\n");
35 # if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)
36 printf("-lpthread -lrt\n");
38 # if defined(GC_SOLARIS_THREADS)
39 printf("-lthread -lposix4\n");
40 /* Is this right for recent versions? */
42 # if defined(GC_WIN32_THREADS) && defined(CYGWIN32)
43 printf("-lpthread\n");
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");
50 printf("-lpthreadGC2\n");
53 # if defined(GC_OSF1_THREADS)
54 printf("-pthread -lrt"); /* DOB: must be -pthread, not -lpthread */
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");