[spice-gtk] build-sys:tests: Error out unless --enable-static is used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]