File: threadlibs.c

package info (click to toggle)
libgc 1%3A5.0.alpha4-8
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,732 kB
  • ctags: 4,443
  • sloc: ansic: 19,751; cpp: 915; makefile: 341; asm: 252; sh: 8
file content (17 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# include "gcconfig.h"
# include <stdio.h>

int main()
{
#   if defined(IRIX_THREADS) || defined(LINUX_THREADS)
	printf("-lpthread\n");
#   endif
#   if defined(HPUX_THREADS)
	printf("-lpthread -lrt\n");
#   endif
#   ifdef SOLARIS_THREADS
        printf("-lthread -ldl\n");
#   endif
    return 0;
}