openwrt/package
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
..
base-files base-files: add logging for configuration import 2021-03-22 21:08:00 +01:00
boot uboot-envtools: adjust compile patch to version v2021.01 2021-03-01 21:50:08 +01:00
devel binutils: fix libbfd missing DSO dependency if NLS enabled 2021-04-10 14:22:28 +02:00
firmware tfa-layerscape: build fiptool again 2021-02-21 13:55:30 +01:00
kernel kernel/modules: relocate teql hotplug from iproute2 to kmod-sched 2021-04-10 14:22:28 +02:00
libs libunwind: Add MIPS64 dep check 2021-03-29 22:26:27 +02:00
network bpftools: drop unneeded libintl linking for NLS 2021-04-10 14:22:28 +02:00
system rpcd: update to git HEAD 2021-03-15 21:53:16 +00:00
utils firmware-utils: bcm4908img: convert into a package 2021-04-08 13:16:13 +02:00
Makefile build: always build package/kernel/linux 2020-10-15 13:25:58 +02:00