build: use top_builddir instead of relative paths
authorAnders Roxell <anders.roxell@linaro.org>
Thu, 28 Feb 2019 15:35:34 +0000 (16:35 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 1 Mar 2019 09:13:19 +0000 (10:13 +0100)
The only instance of using a relative path for an internal library is
in tests/Makefile.am. Use top_builddir instead.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
tests/Makefile.am

index a9319a725f0d11387754998668cacaeb2d7e8c28..c887289ac544769c41d0ef2509f4ad84d203464f 100644 (file)
@@ -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