[Spice-devel] [spice-gtk] build-sys:tests: Error out unless --enable-static is used
Christophe Fergeau
cfergeau at redhat.com
Tue Oct 13 01:56:00 PDT 2015
The binaries in tests/ need a static build of spice-gtk libraries in
order to be built, but by default, we disable static libraries at
LT_INIT() time.
As the compile failure can be quite cryptic when someone
tries to manually run 'make -C tests', this commit adds an explicit
error message when trying to build the tests without --enable-static.
---
tests/Makefile.am | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 19c02b6..144bc38 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,3 +1,6 @@
+if !BUILD_TESTS
+$(error Building tests requires using --enable-static)
+endif
NULL =
noinst_PROGRAMS = \
--
2.5.0
More information about the Spice-devel
mailing list