]> xenbits.xensource.com Git - 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)
committerEric Blake <eblake@redhat.com>
Mon, 7 May 2012 22:11:28 +0000 (16:11 -0600)
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

index fbb756a63ce22fdfceaab54d0084c309b02ca0f3..639be58205bc15538b3dd48e294df2d494e7857e 100644 (file)
@@ -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