From 41a307233888aecdf665d4de0bd05d71e2a0733a 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. (cherry picked from commit 0ca336b32bed7e77e9e7cce6dd2b671b6c308c05) --- tests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index fbc59e0c5b..6b98f18873 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -519,7 +519,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