[glib] Compile private test with -pthread on UNIX



commit 2c1cbde21e24be0e0ae1e20ad772b03255e96c53
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 10 11:10:20 2011 -0400

    Compile private test with -pthread on UNIX
    
    We are using explicit pthread calls here, so we should
    use the right linker flags for that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=661318

 glib/tests/Makefile.am |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/glib/tests/Makefile.am b/glib/tests/Makefile.am
index 6a7aafe..6c9c7bc 100644
--- a/glib/tests/Makefile.am
+++ b/glib/tests/Makefile.am
@@ -206,9 +206,6 @@ once_LDADD       = $(progs_ldadd)
 TEST_PROGS      += cond
 cond_LDADD       = $(progs_ldadd)
 
-TEST_PROGS      += private
-private_LDADD    = $(progs_ldadd)
-
 TEST_PROGS      += thread
 thread_LDADD     = $(progs_ldadd)
 
@@ -218,8 +215,13 @@ slice_LDADD      = $(progs_ldadd)
 TEST_PROGS      += hook
 hook_LDADD       = $(progs_ldadd)
 
+TEST_PROGS      += private
+private_LDADD    = $(progs_ldadd)
+
 if OS_UNIX
 
+private_LDFLAGS = -pthread
+
 TEST_PROGS    += unix
 unix_LDADD  = $(progs_ldadd)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]