blob: c342053aace1e158fb072d2f836f0ebcc48c3be8 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 74629016e76343a4bf39915c9192b6bf26a57c2d Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 4 Oct 2017 22:30:46 -0700
4Subject: [PATCH] libasm may link with libbz2 if found
5
6This can fail to link binaries like objdump
7where indirect libraries may be not found by linker
8
9| /mnt/a/oe/build/tmp/work/riscv64-bec-linux/elfutils/0.170-r0/recipe-sysroot/usr/lib/libbz2.so.1: error adding symbols: DSO missing from command line
10| collect2: error: ld returned 1 exit status
11
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080012Upstream-Status: Pending
Brad Bishopd7bf8c12018-02-25 22:55:05 -050013Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015 src/Makefile.am | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017
18diff --git a/src/Makefile.am b/src/Makefile.am
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080019index 9305b84..9b7e853 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050020--- a/src/Makefile.am
21+++ b/src/Makefile.am
22@@ -39,11 +39,11 @@ EXTRA_DIST += make-debug-archive.in
23 CLEANFILES += make-debug-archive
24
25 if BUILD_STATIC
26-libasm = ../libasm/libasm.a
27+libasm = ../libasm/libasm.a $(zip_LIBS)
28 libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl
29 libelf = ../libelf/libelf.a -lz
30 else
31-libasm = ../libasm/libasm.so
32+libasm = ../libasm/libasm.so $(zip_LIBS)
33 libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl
34 libelf = ../libelf/libelf.so
35 endif
36--
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800372.7.4
Brad Bishopd7bf8c12018-02-25 22:55:05 -050038