2004-08-14 07:05:36 +08:00
|
|
|
# include "gc_config_macros.h"
|
Imported version version 6.0alpha7.
* README, README.Mac, README.OS2, README.QUICK, README.alpha,
README.amiga, README.debugging, README.dj, README.hp, README.linux,
README.rs6000, README.sgi, README.solaris2, README.uts,
README.win32, SCoptions.amiga, backptr.h, barrett_diagram,
dbg_mlc.h, gc.h, gc.man, gc_alloc.h, gc_cpp.h, gc_hdrs.h, gc_mark.h,
gc_priv.h, gc_private.h, gc_typed.h, gcconfig.h,
hpux_irix_threads.c, makefile.depend, nursery.c,
solaris_threads.h, test.c, test_cpp.cc, weakpointer.h, cord/README,
cord/SCOPTIONS.amiga, cord/SMakefile.amiga, cord/cord.h,
cord/ec.h, cord/gc.h, cord/private/cord_pos.h, include/backptr.h,
include/gc_copy_descr.h, include/gc_nursery.h: Remove obsolete/moved
files.
From-SVN: r42379
2001-05-21 16:35:14 +08:00
|
|
|
# include "private/gcconfig.h"
|
1999-04-07 16:01:30 +08:00
|
|
|
# include <stdio.h>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
Imported version version 6.0alpha7.
* README, README.Mac, README.OS2, README.QUICK, README.alpha,
README.amiga, README.debugging, README.dj, README.hp, README.linux,
README.rs6000, README.sgi, README.solaris2, README.uts,
README.win32, SCoptions.amiga, backptr.h, barrett_diagram,
dbg_mlc.h, gc.h, gc.man, gc_alloc.h, gc_cpp.h, gc_hdrs.h, gc_mark.h,
gc_priv.h, gc_private.h, gc_typed.h, gcconfig.h,
hpux_irix_threads.c, makefile.depend, nursery.c,
solaris_threads.h, test.c, test_cpp.cc, weakpointer.h, cord/README,
cord/SCOPTIONS.amiga, cord/SMakefile.amiga, cord/cord.h,
cord/ec.h, cord/gc.h, cord/private/cord_pos.h, include/backptr.h,
include/gc_copy_descr.h, include/gc_nursery.h: Remove obsolete/moved
files.
From-SVN: r42379
2001-05-21 16:35:14 +08:00
|
|
|
# if defined(GC_USE_LD_WRAP)
|
2003-07-28 12:18:23 +08:00
|
|
|
printf("-Wl,--wrap -Wl,dlopen "
|
2000-05-11 05:59:16 +08:00
|
|
|
"-Wl,--wrap -Wl,pthread_create -Wl,--wrap -Wl,pthread_join "
|
Imported version version 6.0alpha7.
* README, README.Mac, README.OS2, README.QUICK, README.alpha,
README.amiga, README.debugging, README.dj, README.hp, README.linux,
README.rs6000, README.sgi, README.solaris2, README.uts,
README.win32, SCoptions.amiga, backptr.h, barrett_diagram,
dbg_mlc.h, gc.h, gc.man, gc_alloc.h, gc_cpp.h, gc_hdrs.h, gc_mark.h,
gc_priv.h, gc_private.h, gc_typed.h, gcconfig.h,
hpux_irix_threads.c, makefile.depend, nursery.c,
solaris_threads.h, test.c, test_cpp.cc, weakpointer.h, cord/README,
cord/SCOPTIONS.amiga, cord/SMakefile.amiga, cord/cord.h,
cord/ec.h, cord/gc.h, cord/private/cord_pos.h, include/backptr.h,
include/gc_copy_descr.h, include/gc_nursery.h: Remove obsolete/moved
files.
From-SVN: r42379
2001-05-21 16:35:14 +08:00
|
|
|
"-Wl,--wrap -Wl,pthread_detach "
|
|
|
|
"-Wl,--wrap -Wl,pthread_sigmask -Wl,--wrap -Wl,sleep\n");
|
|
|
|
# endif
|
2001-10-16 17:01:40 +08:00
|
|
|
# if defined(GC_LINUX_THREADS) || defined(GC_IRIX_THREADS) \
|
2006-01-25 11:03:14 +08:00
|
|
|
|| defined(GC_SOLARIS_PTHREADS) \
|
2012-11-05 06:56:02 +08:00
|
|
|
|| defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS) \
|
|
|
|
|| defined(GC_GNU_THREADS)
|
2001-10-16 17:01:40 +08:00
|
|
|
printf("-lpthread\n");
|
2000-04-19 18:10:01 +08:00
|
|
|
# endif
|
2006-01-25 11:03:14 +08:00
|
|
|
# if defined(GC_FREEBSD_THREADS)
|
|
|
|
# if (__FREEBSD_version >= 500000)
|
|
|
|
printf("-lpthread\n");
|
|
|
|
# else
|
|
|
|
printf("-pthread\n");
|
|
|
|
# endif
|
|
|
|
# endif
|
2001-10-16 17:01:40 +08:00
|
|
|
# if defined(GC_HPUX_THREADS) || defined(GC_OSF1_THREADS)
|
1999-11-02 07:15:51 +08:00
|
|
|
printf("-lpthread -lrt\n");
|
|
|
|
# endif
|
2002-02-12 12:37:57 +08:00
|
|
|
# if defined(GC_SOLARIS_THREADS) && !defined(GC_SOLARIS_PTHREADS)
|
1999-04-07 16:01:30 +08:00
|
|
|
printf("-lthread -ldl\n");
|
2003-07-28 12:18:23 +08:00
|
|
|
# endif
|
|
|
|
# if defined(GC_WIN32_THREADS) && defined(CYGWIN32)
|
|
|
|
printf("-lpthread\n");
|
|
|
|
# endif
|
|
|
|
# if defined(GC_OSF1_THREADS)
|
|
|
|
printf("-pthread -lrt"); /* DOB: must be -pthread, not -lpthread */
|
|
|
|
# endif
|
|
|
|
/* You need GCC 3.0.3 to build this one! */
|
|
|
|
/* DG/UX native gcc doesnt know what "-pthread" is */
|
|
|
|
# if defined(GC_DGUX386_THREADS)
|
|
|
|
printf("-ldl -pthread\n");
|
1999-04-07 16:01:30 +08:00
|
|
|
# endif
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|