test: add basic static link test
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 18 Aug 2014 22:15:07 +0000 (08:15 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 25 Aug 2014 00:06:48 +0000 (10:06 +1000)
Same as the dynamic link test, just with the -static flag

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/Makefile.am

index 7b195fb299db20c109a6e3e4451a63fbfd8101fc..1b65224d0fb4fda9e47a16c87635604108fd2bb9 100644 (file)
@@ -1,6 +1,6 @@
 if BUILD_TESTS
 run_tests = test-libevdev test-kernel
-build_tests = test-compile-pedantic test-link
+build_tests = test-compile-pedantic test-link test-static-link
 
 .NOTPARALLEL:
 
@@ -45,6 +45,11 @@ test_link_SOURCES = test-link.c
 test_link_CFLAGS = -I$(top_srcdir)
 test_link_LDADD = $(top_builddir)/libevdev/libevdev.la
 
+test_static_link_SOURCES = test-link.c
+test_static_link_CFLAGS = -I$(top_srcdir)
+test_static_link_LDADD = $(top_builddir)/libevdev/libevdev.la
+test_static_link_LDFLAGS = -static
+
 test_kernel_SOURCES = \
                      test-kernel.c \
                      $(common_sources)