gcc/boehm-gc/threadlibs.c
Bryce McKinlay 402823c45e Imported 5.0 release version.
2000-05-11  Bryce McKinlay  <bryce@albatross.co.nz>

        Imported 5.0 release version.
        * acinclude.m4: Increment version to 5.0.

From-SVN: r33832
2000-05-10 22:59:16 +01:00

27 lines
574 B
C

# include "gcconfig.h"
# include <stdio.h>
int main()
{
# if defined(LINUX_THREADS)
# ifdef USE_LD_WRAP
printf("-Wl,--wrap -Wl,read -Wl,--wrap -Wl,dlopen "
"-Wl,--wrap -Wl,pthread_create -Wl,--wrap -Wl,pthread_join "
"-Wl,--wrap -Wl,pthread_sigmask -lpthread -ldl\n");
# else
printf("-lpthread -ldl\n");
# endif
# endif
# if defined(IRIX_THREADS)
printf("-lpthread\n");
# endif
# if defined(HPUX_THREADS)
printf("-lpthread -lrt\n");
# endif
# ifdef SOLARIS_THREADS
printf("-lthread -ldl\n");
# endif
return 0;
}