tests/Makefile.am: use top_builddir instead of relative paths

Message ID 20190228153534.1786-2-anders.roxell@linaro.org
State Superseded
Headers show
Series
  • tests/Makefile.am: use top_builddir instead of relative paths
Related show

Commit Message

Anders Roxell Feb. 28, 2019, 3:35 p.m.
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>

---
 tests/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.20.1

Patch

diff --git a/tests/Makefile.am b/tests/Makefile.am
index bf03ac7aa27a..7eaf28529ceb 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -9,7 +9,7 @@ 
 AM_CFLAGS = -I$(top_srcdir)/include/ -include $(top_builddir)/config.h
 AM_CFLAGS += -Wall -Wextra -g $(KMOD_CFLAGS) $(UDEV_CFLAGS)
 AM_LDFLAGS = -pthread
-LDADD = ../src/lib/libgpiod.la $(KMOD_LIBS) $(UDEV_LIBS)
+LDADD = $(top_builddir)/src/lib/libgpiod.la $(KMOD_LIBS) $(UDEV_LIBS)
 
 check_PROGRAMS = gpiod-test