diff options
author | Tony Ambardar <itugrok@yahoo.com> | 2021-03-27 05:43:03 -0700 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-04-10 14:22:28 +0200 |
commit | 40143873d654108503a90ad9d52ea9e74d6e6ffd (patch) | |
tree | accab3fbb9cd448711bba27d0be1e9182b6beb9c /README.md | |
parent | 879cbd9e97bb4cf1c87f907946c6be0e8d46a1fd (diff) | |
download | upstream-40143873d654108503a90ad9d52ea9e74d6e6ffd.tar.gz upstream-40143873d654108503a90ad9d52ea9e74d6e6ffd.tar.bz2 upstream-40143873d654108503a90ad9d52ea9e74d6e6ffd.zip |
iproute2: fix libbpf detection with NLS enabled
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 aab3a04ce87c27996b7ce9ea306db8c6eed86941)
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions