[BACK]Return to threadlibs.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / gc

Annotation of OpenXM_contrib2/asir2000/gc/threadlibs.c, Revision 1.6

1.4       noro        1: # include "private/gcconfig.h"
1.1       noro        2: # include <stdio.h>
                      3:
                      4: int main()
                      5: {
1.4       noro        6: #   if defined(GC_USE_LD_WRAP)
1.3       noro        7:        printf("-Wl,--wrap -Wl,read -Wl,--wrap -Wl,dlopen "
                      8:               "-Wl,--wrap -Wl,pthread_create -Wl,--wrap -Wl,pthread_join "
1.4       noro        9:               "-Wl,--wrap -Wl,pthread_detach "
                     10:               "-Wl,--wrap -Wl,pthread_sigmask -Wl,--wrap -Wl,sleep\n");
                     11: #   endif
1.6     ! noro       12: #   if defined(GC_LINUX_THREADS) || defined(GC_IRIX_THREADS) \
        !            13:        || defined(GC_FREEBSD_THREADS) || defined(GC_SOLARIS_PTHREADS)
        !            14:         printf("-lpthread\n");
1.3       noro       15: #   endif
1.6     ! noro       16: #   if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)
1.2       noro       17:        printf("-lpthread -lrt\n");
                     18: #   endif
1.6     ! noro       19: #   if defined(GC_SOLARIS_THREADS) && !defined(GC_SOLARIS_PTHREADS)
1.1       noro       20:         printf("-lthread -ldl\n");
1.4       noro       21: #   endif
1.6     ! noro       22: #   if defined(GC_WIN32_THREADS) && defined(CYGWIN32)
        !            23:         printf("-lpthread\n");
        !            24: #   endif
        !            25:     /* You need GCC 3.0.3 to build this one!           */
        !            26:     /* DG/UX native gcc doesnt know what "-pthread" is */
        !            27: #   if defined(GC_DGUX386_THREADS)
        !            28:         printf("-ldl -pthread\n");
1.1       noro       29: #   endif
                     30:     return 0;
                     31: }
                     32:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>