X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=libgc%2FCMakeLists.txt;h=d0a0a718bad6901c42eeaeeade19b948fa65341c;hb=dde3844fe754683bba0b22ed6ac33ee6fbb1e83f;hp=5b81df69dc00232cda77c1d68559e30a9a239c8d;hpb=32cddb52a26011e1481f1f82c832b219a0022c25;p=mono.git diff --git a/libgc/CMakeLists.txt b/libgc/CMakeLists.txt index 5b81df69dc0..d0a0a718bad 100644 --- a/libgc/CMakeLists.txt +++ b/libgc/CMakeLists.txt @@ -21,31 +21,10 @@ # Only the functionality needed by mono is supported # -# FIXME: -set(THREADS pthreads) - # FIXME: add_definitions("-g -O2") -###THREADS=$with_libgc_threads -### -###AC_ARG_ENABLE(win32-dllmain, -###[ --enable-win32-dllmain Define the DllMain function in win32_threads.c even if the collector is not built as a dll], -###) -### -###AC_ARG_ENABLE(parallel-mark, -###[ --enable-parallel-mark parallelize marking and free list construction], -### [case "$THREADS" in -### no | none | single) -### AC_MSG_ERROR([Parallel mark requires --enable-threads=x spec]) -### ;; -### esac] -###) -### -###AC_ARG_ENABLE(cplusplus, -###[ --enable-cplusplus install C++ support], -###) -### +set(THREADS ${libgc_threads}) set(THREADDLLIBS "") @@ -112,33 +91,9 @@ if(THREADS STREQUAL "win32") endif() endif() -### dgux386) -### THREADS=dgux386 -### AC_MSG_RESULT($THREADDLLIBS) -### # Use pthread GCC switch -### THREADDLLIBS=-pthread -### if test "${enable_parallel_mark}" = yes; then -### AC_DEFINE(PARALLEL_MARK) -### fi -### AC_DEFINE(THREAD_LOCAL_ALLOC) -### AC_DEFINE(GC_DGUX386_THREADS) -### AC_DEFINE(DGUX_THREADS) -### # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread -### INCLUDES="-pthread $INCLUDES" -### ;; -### aix) -### THREADS=posix -### THREADDLLIBS=-lpthread -### AC_DEFINE(GC_AIX_THREADS) -### AC_DEFINE(_REENTRANT) -### ;; -### decosf1|irix|mach|os2|solaris|dce|vxworks) -### AC_MSG_ERROR(thread package $THREADS not yet supported) -### ;; -### *) -### AC_MSG_ERROR($THREADS is an unknown thread package) -### ;; -###esac +if(${host} MATCHES "powerpc-.*-darwin.*") + set(powerpc_darwin yes) +endif() if(parallel_mark_supported AND enable_parallel_mark) add_definitions("-DPARALLEL_MARK") @@ -223,11 +178,9 @@ set(top_srcdir ../) INCLUDE_DIRECTORIES(. .. include) add_definitions(${CPPFLAGS}) -###if POWERPC_DARWIN -###asm_libgc_sources = powerpc_darwin_mach_dep.s -###else -###asm_libgc_sources = -###endif +if(powerpc_darwin) + set(asm_libgc_sources powerpc_darwin_mach_dep.s) +endif() set(libmonogc_la_SOURCES allchblk.c alloc.c blacklst.c checksums.c dbg_mlc.c