[Pdbg] [PATCH 8/8] Makefile: Drop LDFLAGS to bundle whole library

Amitay Isaacs amitay at ozlabs.org
Thu Jun 13 13:24:16 AEST 2019


This was required to ensure that hw_units section was not dropped during
linking phase.  Now that hw units are registered on startup, there is no
need for this hack.

Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 Makefile.am | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 4e7f34a..2a5fe65 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -122,8 +122,6 @@ src/pdbg-gdb_parser.$(OBJEXT): CFLAGS+=-Wno-unused-const-variable
 pdbg_LDADD = $(DT_objects) libpdbg.la libccan.a \
 	-L.libs -lrt
 
-pdbg_LDFLAGS = -Wl,--whole-archive,-lpdbg,--no-whole-archive
-
 lib_LTLIBRARIES = libfdt.la libpdbg.la
 
 libfdt_la_CFLAGS = -I$(top_srcdir)/libfdt
@@ -191,29 +189,24 @@ libccan_a_SOURCES = \
 	ccan/str/str.h
 
 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
 
 libpdbg_target_test_SOURCES = src/tests/libpdbg_target_test.c
 libpdbg_target_test_CFLAGS = $(libpdbg_test_cflags)
-libpdbg_target_test_LDFLAGS = $(libpdbg_test_ldflags)
 libpdbg_target_test_LDADD = fake.dtb.o $(libpdbg_test_ldadd)
 
 src/tests/libpdbg_target_test.c: fake.dt.h
 
 libpdbg_probe_test1_SOURCES = src/tests/libpdbg_probe_test.c
 libpdbg_probe_test1_CFLAGS = $(libpdbg_test_cflags) -DTEST_ID=1
-libpdbg_probe_test1_LDFLAGS = $(libpdbg_test_ldflags)
 libpdbg_probe_test1_LDADD = fake.dtb.o $(libpdbg_test_ldadd)
 
 libpdbg_probe_test2_SOURCES = src/tests/libpdbg_probe_test.c
 libpdbg_probe_test2_CFLAGS = $(libpdbg_test_cflags) -DTEST_ID=2
-libpdbg_probe_test2_LDFLAGS = $(libpdbg_test_ldflags)
 libpdbg_probe_test2_LDADD = fake.dtb.o $(libpdbg_test_ldadd)
 
 libpdbg_probe_test3_SOURCES = src/tests/libpdbg_probe_test.c
 libpdbg_probe_test3_CFLAGS = $(libpdbg_test_cflags) -DTEST_ID=3
-libpdbg_probe_test3_LDFLAGS = $(libpdbg_test_ldflags)
 libpdbg_probe_test3_LDADD = fake.dtb.o $(libpdbg_test_ldadd)
 
 src/tests/libpdbg_probe_test.c: fake.dt.h
-- 
2.21.0



More information about the Pdbg mailing list