forked from mirror/openwrt
Upstream iproute2 detects libbpf using a one-line $CC test-compile, which
normally ignores LDFLAGS. With NLS enabled however, LDFLAGS includes an
"rpath-link" linker option needed to resolve libintl.so. Its absence
causes both the compile and libbpf detection to fail:
ld: warning: libintl.so.8, needed by libbpf.so, not found (try using
-rpath or -rpath-link)
ld: libelf.so.1: undefined reference to `libintl_dgettext'
collect2: error: ld returned 1 exit status
Fix this by directly including $LDFLAGS in the test-compile command.
Reported-by: Ian Cooper <iancooper@hotmail.com>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| 100-configure.patch | ||
| 110-darwin_fixes.patch | ||
| 115-add-config-xtlibdir.patch | ||
| 120-no_arpd.patch | ||
| 130-no_netem.patch | ||
| 140-allow_pfifo_fast.patch | ||
| 140-keep_libmnl_optional.patch | ||
| 145-keep_libelf_optional.patch | ||
| 150-keep_libcap_optional.patch | ||
| 160-libnetlink-pic.patch | ||
| 170-ip_tiny.patch | ||
| 175-reduce-dynamic-syms.patch | ||
| 180-drop_FAILED_POLICY.patch | ||
| 185-libbpf-add-limits-h.patch | ||
| 190-fix-nls-rpath-link.patch | ||
| 200-drop_libbsd_dependency.patch | ||
| 300-selinux-configurable.patch | ||