]> granicus.if.org Git - gc/commitdiff
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 0d1fa831ba873258b59dc96bedd9dbd1a0c811dd..37576018a3af6e5970fe6d421fc56a680bf42850 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