Compile private test with -pthread on UNIX
authorMatthias Clasen <mclasen@redhat.com>
Mon, 10 Oct 2011 15:10:20 +0000 (11:10 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 10 Oct 2011 15:11:29 +0000 (11:11 -0400)
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

index 6a7aafe..6c9c7bc 100644 (file)
@@ -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)