0001-libasm-may-link-with-libbz2-if-found.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 8e5fff8b1d819e0870fb22b27950bb5f10c7a272 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. This can fail to link binaries like objdump
  6. where indirect libraries may be not found by linker
  7. | /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
  8. | collect2: error: ld returned 1 exit status
  9. Upstream-Status: Pending
  10. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  11. ---
  12. src/Makefile.am | 4 ++--
  13. 1 file changed, 2 insertions(+), 2 deletions(-)
  14. diff --git a/src/Makefile.am b/src/Makefile.am
  15. index ea1215b..13d9bda 100644
  16. --- a/src/Makefile.am
  17. +++ b/src/Makefile.am
  18. @@ -40,11 +40,11 @@ EXTRA_DIST += make-debug-archive.in
  19. CLEANFILES += make-debug-archive
  20. if BUILD_STATIC
  21. -libasm = ../libasm/libasm.a
  22. +libasm = ../libasm/libasm.a $(zip_LIBS)
  23. libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) -ldl -lpthread
  24. libelf = ../libelf/libelf.a -lz
  25. else
  26. -libasm = ../libasm/libasm.so
  27. +libasm = ../libasm/libasm.so $(zip_LIBS)
  28. libdw = ../libdw/libdw.so $(zip_LIBS) $(libelf) $(libebl) -ldl
  29. libelf = ../libelf/libelf.so
  30. endif