summaryrefslogtreecommitdiff
path: root/boehm-gc/threadlibs.c
blob: b2e6a10b0b96d3090821d13ea31efd720cbcca3a (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 read\" -Wl,\"--wrap dlopen\" "
	       "-Wl,\"--wrap pthread_create\" -Wl,\"--wrap pthread_join\" "
	       "-Wl,\"--wrap pthread_sigmask\" -lpthread\n");
#     else
	printf("-lpthread\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;
}