summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy White <jwhite@codeweavers.com>2015-07-27 15:32:47 -0500
committerJeremy White <jwhite@codeweavers.com>2015-07-28 10:12:46 -0500
commit04d9d790132127ae3b70dd86c1a7e914498d9dab (patch)
tree820ce928809aae3cab938c548961421e4580f4dd
parent40537f6a3e3389b8377b0ae790c62ea0da8aa6d8 (diff)
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.
-rw-r--r--server/tests/Makefile.am1
1 files changed, 1 insertions, 0 deletions
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 = \