openwrt/package
Tony Ambardar 9a59f62f61 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>
2021-04-03 18:56:02 +02:00
..
base-files base-files: functions: introduce new helper functions 2021-03-31 16:53:39 +01:00
boot uboot-mediatek: adapt root= cmdline arg for bpi-r64 2021-03-31 22:54:17 +01:00
devel binutils: fix libbfd missing DSO dependency if NLS enabled 2021-04-03 18:56:02 +02:00
firmware treewide: fix spelling 'seperate' -> 'separate' 2021-02-28 23:59:21 +00:00
kernel mac80211: merge a few pending tx related fixes 2021-03-28 12:16:24 +02:00
libs ncurses: add screen-256color terminfo 2021-03-29 13:47:55 -10:00
network bpftools: drop unneeded libintl linking for NLS 2021-04-03 18:55:57 +02:00
system procd: update to git HEAD 2021-03-21 13:36:58 +00:00
utils ucode: update to latest Git HEAD 2021-04-01 00:12:38 +02:00
Makefile build: always build package/kernel/linux 2020-10-15 13:25:58 +02:00