summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-08-19 08:40:19 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-08-25 10:06:48 +1000
commit6d3c994694f7ab82d7e65084332b17d8aeded829 (patch)
treeac89877a24286890f0114b74b0a904c69d91ac0c
parent1e264b6e9431a200c0cf3f0432df4062ffaae20d (diff)
downloadlibevdev-6d3c994694f7ab82d7e65084332b17d8aeded829.tar.gz
test: handle the GCOV_LDFLAGS in all tests
We rebuild the libevdev object files with the gcov flags for the tests, so we need to make sure those flags are present on all binaries. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--test/Makefile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index c027e8f..992ce4f 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -24,6 +24,7 @@ common_sources = $(libevdev_sources) \
# include builddir for event-names.h
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/libevdev $(CHECK_CFLAGS) $(GCOV_CFLAGS)
+AM_LDFLAGS = $(GCOV_LDFLAGS)
test_libevdev_SOURCES = \
test-main.c \
@@ -36,7 +37,7 @@ test_libevdev_SOURCES = \
test-uinput.c \
$(common_sources)
-test_libevdev_LDADD = $(CHECK_LIBS) $(GCOV_LDFLAGS)
+test_libevdev_LDADD = $(CHECK_LIBS)
test_compile_pedantic_SOURCES = test-compile-pedantic.c
test_compile_pedantic_CFLAGS = $(AM_CPPFLAGS) -pedantic -Werror -std=c90
@@ -48,7 +49,7 @@ 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_static_link_LDFLAGS = $(AM_LDFLAGS) -static
test_kernel_SOURCES = \
test-kernel.c \