blob: 62031073e317b63ec83287dc8a27cb9ccf960820 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001From ec9a7742734aae5417c0ebbffce66ac353e6cae7 Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 15 Aug 2017 17:10:57 +0800
Brad Bishop19323692019-04-05 15:28:33 -04004Subject: [PATCH] dso link change
Brad Bishopd7bf8c12018-02-25 22:55:05 -05005
6Upstream-Status: Pending
7
8This patch makes the link to the dependencies of libdw explicit, as
9recent ld no longer implicitly links them. See
10http://lists.fedoraproject.org/pipermail/devel/2010-March/133601.html
11as a similar example of the error message you can encounter without this
12patch, and https://fedoraproject.org/wiki/UnderstandingDSOLinkChange and
13https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking for
14more details.
15
16Rebase to 0.170
17
18Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Brad Bishop19323692019-04-05 15:28:33 -040019
Brad Bishopd7bf8c12018-02-25 22:55:05 -050020---
21 src/Makefile.am | 2 +-
22 tests/Makefile.am | 2 +-
23 2 files changed, 2 insertions(+), 2 deletions(-)
24
25diff --git a/src/Makefile.am b/src/Makefile.am
Andrew Geissler82c905d2020-04-13 13:39:40 -050026index e462e7d..ea1215b 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050027--- a/src/Makefile.am
28+++ b/src/Makefile.am
Andrew Geissler82c905d2020-04-13 13:39:40 -050029@@ -45,7 +45,7 @@ libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) -ldl -lpthread
Brad Bishopd7bf8c12018-02-25 22:55:05 -050030 libelf = ../libelf/libelf.a -lz
31 else
32 libasm = ../libasm/libasm.so
33-libdw = ../libdw/libdw.so
34+libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl
35 libelf = ../libelf/libelf.so
36 endif
Andrew Geissler82c905d2020-04-13 13:39:40 -050037 libebl = ../libebl/libebl.a ../backends/libebl_backends.a ../libcpu/libcpu.a
Brad Bishopd7bf8c12018-02-25 22:55:05 -050038diff --git a/tests/Makefile.am b/tests/Makefile.am
Andrew Geissler82c905d2020-04-13 13:39:40 -050039index eab4ae6..f59a01f 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050040--- a/tests/Makefile.am
41+++ b/tests/Makefile.am
Andrew Geissler82c905d2020-04-13 13:39:40 -050042@@ -516,7 +516,7 @@ libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl -lpthread
Brad Bishopd7bf8c12018-02-25 22:55:05 -050043 libelf = ../libelf/libelf.a -lz
44 libasm = ../libasm/libasm.a
45 else
46-libdw = ../libdw/libdw.so
47+libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl
48 libelf = ../libelf/libelf.so
49 libasm = ../libasm/libasm.so
50 endif