openwrt/package/devel
Tony Ambardar 879cbd9e97 binutils: fix libbfd missing DSO dependency if NLS enabled
The libbfd package definition uses $(ICONV_DEPENDS) and $(INTL_DEPENDS)
but links against neither, leading to libbfd detection failures in other
packages (e.g. bpftools) and on-target relocation problems with libintl.so:

  root@OpenWrt:/# ldd /usr/lib/libbfd.so
        ldd (0x77db6000)
        libc.so => ldd (0x77db6000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x77c6d000)
  Error relocating /usr/lib/libbfd.so: libintl_dgettext: symbol not found

Add NLS-conditional linking of "libintl" to fix this. Also remove libbfd
package dependency $(ICONV_DEPENDS) which is not used during building or
linking.

Tested with QEMU on malta/be32, after building all packages from binutils,
bpftools and iproute2, using different libc options musl and glibc.

Fixes: 08e8175696 ("binutils: use nls.mk to fix libbfd link errors in
other packages")
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
(cherry picked from commit 9a59f62f61)
2021-04-10 14:22:28 +02:00
..
binutils binutils: fix libbfd missing DSO dependency if NLS enabled 2021-04-10 14:22:28 +02:00
gdb gdb: fix building with NLS enabled 2020-11-05 00:55:37 +00:00
perf
strace strace: update package to v5.10 2021-01-30 01:03:00 +01:00
trace-cmd trace-cmd: update to 2.9.1 2021-01-01 19:55:59 +01:00
valgrind valgrind: Update to version 3.16.1 2020-11-18 19:01:44 +01:00