1999-11-02 07:15:51 +08:00
|
|
|
# include "gcconfig.h"
|
1999-04-07 16:01:30 +08:00
|
|
|
# include <stdio.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2000-04-19 18:10:01 +08:00
|
|
|
# if defined(LINUX_THREADS)
|
|
|
|
# ifdef USE_LD_WRAP
|
2000-05-11 05:59:16 +08:00
|
|
|
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");
|
2000-04-19 18:10:01 +08:00
|
|
|
# else
|
2000-05-11 05:59:16 +08:00
|
|
|
printf("-lpthread -ldl\n");
|
2000-04-19 18:10:01 +08:00
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
# if defined(IRIX_THREADS)
|
1999-04-07 16:01:30 +08:00
|
|
|
printf("-lpthread\n");
|
|
|
|
# endif
|
1999-11-02 07:15:51 +08:00
|
|
|
# if defined(HPUX_THREADS)
|
|
|
|
printf("-lpthread -lrt\n");
|
|
|
|
# endif
|
1999-04-07 16:01:30 +08:00
|
|
|
# ifdef SOLARIS_THREADS
|
|
|
|
printf("-lthread -ldl\n");
|
|
|
|
# endif
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|