Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 7672e363468271b4c63ff58770c5aac15ab8f722 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 4 Oct 2017 22:30:46 -0700 |
| 4 | Subject: [PATCH] libasm may link with libbz2 if found |
| 5 | |
| 6 | This can fail to link binaries like objdump |
| 7 | where 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 | |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- |
| 14 | Upstream-Status: Pending |
| 15 | |
| 16 | src/Makefile.am | 6 +++--- |
| 17 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 18 | |
| 19 | diff --git a/src/Makefile.am b/src/Makefile.am |
| 20 | index e03bc32..9b7e853 100644 |
| 21 | --- a/src/Makefile.am |
| 22 | +++ b/src/Makefile.am |
| 23 | @@ -39,11 +39,11 @@ EXTRA_DIST += make-debug-archive.in |
| 24 | CLEANFILES += make-debug-archive |
| 25 | |
| 26 | if BUILD_STATIC |
| 27 | -libasm = ../libasm/libasm.a |
| 28 | +libasm = ../libasm/libasm.a $(zip_LIBS) |
| 29 | libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl |
| 30 | libelf = ../libelf/libelf.a -lz |
| 31 | else |
| 32 | -libasm = ../libasm/libasm.so |
| 33 | +libasm = ../libasm/libasm.so $(zip_LIBS) |
| 34 | libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl |
| 35 | libelf = ../libelf/libelf.so |
| 36 | endif |
| 37 | -- |
| 38 | 2.14.2 |
| 39 | |