]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: avoid link failure on Windows
authorEric Blake <eblake@redhat.com>
Wed, 2 May 2012 18:53:04 +0000 (12:53 -0600)
committerCole Robinson <crobinso@redhat.com>
Thu, 14 Jun 2012 21:03:58 +0000 (17:03 -0400)
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

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