configure: do not compile pthread_stop_world.c for Cygwin/Darwin
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Dec 2011 07:13:35 +0000 (11:13 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 28 Dec 2011 07:13:35 +0000 (11:13 +0400)
(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.

Makefile.am

index 0d1fa83..3757601 100644 (file)
@@ -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