From 0ca336b32bed7e77e9e7cce6dd2b671b6c308c05 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 2 May 2012 12:53:04 -0600 Subject: [PATCH] build: avoid link failure on Windows We only know -lpthread exists on platforms where we build threads-pthread.c; but when we build threads-win32.c, LIB_PTHREAD is empty. * tests/Makefile.am (shunloadtest_LDADD): Use correct library. --- tests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index fbb756a63c..639be58205 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -530,7 +530,7 @@ libshunload_la_LDFLAGS = -module -avoid-version -rpath /evil/libtool/hack/to/for shunloadtest_SOURCES = \ shunloadtest.c -shunloadtest_LDADD = -lpthread +shunloadtest_LDADD = $(LIB_PTHREAD) shunloadtest_DEPENDENCIES = libshunload.la if WITH_CIL