aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/threadlibs.c
blob: 7379454c420ce5501c4093844bd58a9e93fdbe32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# 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;
}