From: Ivan Maidanski Date: Wed, 28 Dec 2011 07:13:35 +0000 (+0400) Subject: configure: do not compile pthread_stop_world.c for Cygwin/Darwin X-Git-Tag: gc7_3alpha2~261 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb8393633a614d5ad7d69609ef52e2c6693281b0;p=gc configure: do not compile pthread_stop_world.c for Cygwin/Darwin (to reduce linker warnings about empty object files) * Makefile.am (libgc_la_SOURCES): Do not add pthread_start.c, pthread_support.c, pthread_stop_world.c entries for Cygwin and win32-pthread; do not add pthread_stop_world.c entry for Darwin. --- diff --git a/Makefile.am b/Makefile.am index 0d1fa831..37576018 100644 --- a/Makefile.am +++ b/Makefile.am @@ -63,16 +63,17 @@ libgc_la_SOURCES = \ # C Library: Architecture Dependent # --------------------------------- +if WIN32_THREADS +libgc_la_SOURCES += win32_threads.c +else if PTHREADS -libgc_la_SOURCES += pthread_start.c pthread_support.c pthread_stop_world.c -endif - +libgc_la_SOURCES += pthread_start.c pthread_support.c if DARWIN_THREADS libgc_la_SOURCES += darwin_stop_world.c +else +libgc_la_SOURCES += pthread_stop_world.c +endif endif - -if WIN32_THREADS -libgc_la_SOURCES += win32_threads.c endif if ENABLE_DISCLAIM