Back to index

plt-scheme  4.2.1
threadlibs.c
Go to the documentation of this file.
00001 # include "gc_config_macros.h"
00002 # include "private/gcconfig.h"
00003 # include <stdio.h>
00004 
00005 int main()
00006 {
00007 #   if defined(GC_USE_LD_WRAP)
00008        printf("-Wl,--wrap -Wl,dlopen "
00009               "-Wl,--wrap -Wl,pthread_create -Wl,--wrap -Wl,pthread_join "
00010               "-Wl,--wrap -Wl,pthread_detach "
00011               "-Wl,--wrap -Wl,pthread_sigmask -Wl,--wrap -Wl,sleep\n");
00012 #   endif
00013 #   if defined(GC_LINUX_THREADS) || defined(GC_IRIX_THREADS) \
00014        || defined(GC_SOLARIS_PTHREADS) \
00015        || defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS)
00016         printf("-lpthread\n");
00017 #   endif
00018 #   if defined(GC_FREEBSD_THREADS)
00019 #       if (__FREEBSD_version >= 500000)
00020           printf("-lpthread\n");
00021 #       else
00022           printf("-pthread\n");
00023 #       endif
00024 #   endif
00025 #   if defined(GC_NETBSD_THREADS)
00026          printf("-lpthread -lrt\n");
00027 #   endif
00028 
00029 #   if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)
00030        printf("-lpthread -lrt\n");
00031 #   endif
00032 #   if defined(GC_SOLARIS_THREADS) && !defined(GC_SOLARIS_PTHREADS)
00033         printf("-lthread -ldl\n");
00034 #   endif
00035 #   if defined(GC_WIN32_THREADS) && defined(CYGWIN32)
00036         printf("-lpthread\n");
00037 #   endif
00038 #   if defined(GC_OSF1_THREADS)
00039        printf("-pthread -lrt"); /* DOB: must be -pthread, not -lpthread */
00040 #   endif
00041     /* You need GCC 3.0.3 to build this one!           */  
00042     /* DG/UX native gcc doesnt know what "-pthread" is */
00043 #   if defined(GC_DGUX386_THREADS)
00044         printf("-ldl -pthread\n");
00045 #   endif
00046     return 0;
00047 }
00048