From 04d9d790132127ae3b70dd86c1a7e914498d9dab Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Mon, 27 Jul 2015 15:32:47 -0500 Subject: Add libraries such as -lm and -lpthread to the tests build line. This prevents a compile error on Debian Jessie, from git, such as this: /usr/bin/ld: test_playback.o: undefined reference to symbol 'sin@@GLIBC_2.2.5' //lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line This is fairly subtle, and Debian specific. It only happens when you use autoreconf to generate a new libtool script. Debian patches that script to require an explicit setting to link with all dependent libraries. It should be harmless on other distros, and it does save us Debian guys some hassle. --- server/tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/server/tests/Makefile.am b/server/tests/Makefile.am index 3a52d5cc..32c97cea 100644 --- a/server/tests/Makefile.am +++ b/server/tests/Makefile.am @@ -20,6 +20,7 @@ LDADD = \ $(top_builddir)/spice-common/common/libspice-common.la \ $(top_builddir)/server/libspice-server.la \ $(GLIB2_LIBS) \ + $(SPICE_NONPKGCONFIG_LIBS) \ $(NULL) COMMON_BASE = \ -- cgit v1.2.3