[Pdbg] [PATCH] build: Add explicit dependency of libfdt for libpdbg
Alistair Popple
alistair at popple.id.au
Tue Oct 23 14:35:20 AEDT 2018
From: Amitay Isaacs <amitay at ozlabs.org>
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
Makefile.am | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 88aabe9..0d451d3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -87,7 +87,7 @@ pdbg_SOURCES = \
src/main.c: $(DT_headers)
-pdbg_LDADD = $(DT_objects) libpdbg.la libfdt.la libccan.a \
+pdbg_LDADD = $(DT_objects) libpdbg.la libccan.a \
-L.libs -lrt
pdbg_LDFLAGS = -Wl,--whole-archive,-lpdbg,--no-whole-archive
@@ -138,6 +138,7 @@ libpdbg_la_SOURCES = \
libpdbg/operations.h \
libpdbg/libpdbg.h \
libpdbg/target.h
+libpdbg_la_LIBADD = libfdt.la
noinst_LIBRARIES = libccan.a
@@ -155,7 +156,7 @@ libccan_a_SOURCES = \
libpdbg_test_cflags = -I$(top_srcdir)/libpdbg -I$(top_srcdir)/libfdt
libpdbg_test_ldflags = -Wl,--whole-archive,-lpdbg,--no-whole-archive
-libpdbg_test_ldadd = -L.libs libpdbg.la libfdt.la
+libpdbg_test_ldadd = -L.libs libpdbg.la
libpdbg_target_test_SOURCES = src/tests/libpdbg_target_test.c
libpdbg_target_test_CFLAGS = $(libpdbg_test_cflags)
--
2.11.0
More information about the Pdbg
mailing list