kumquat-buildroot/package/libnss
Giulio Benetti 13c7db8716 package/libnss: fix build failure on Aarch64 host for powerpc64 target
When building on Aarch64 host for powerpc64 we get this error:
gcc: error: unrecognized command-line option '-m64'

This happens because we don't have the flexibility to override the LDFLAGS
when linking nsinstall host tool that is built in libnss. Also libnss uses
the same LDFLAGS it uses for target and that is not correct.
So let's add a patch to add NATIVE_LDFLAGS variable to override LFDFLAGS
when building nsinstall utility and set it to HOST_LDFLAGS in libnss.mk

Fixes:
http://autobuild.buildroot.net/results/67500395f19aa698b98404cde8d20463e55504bf/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Tested-by: James Hilliard <james.hilliard1@gmail.com>
[yann.morin.1998@free.fr: add upstream link in patch itself]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-05-28 22:03:52 +02:00
..
0001-Bug-1771036-Fix-build-failure-on-Aarch64-host.patch package/libnss: fix build failure on Aarch64 host for powerpc64 target 2022-05-28 22:03:52 +02:00
Config.in
libnss.hash package/libnss: bump to version 3.78 2022-05-02 23:40:23 +02:00
libnss.mk package/libnss: fix build failure on Aarch64 host for powerpc64 target 2022-05-28 22:03:52 +02:00
nss.pc.in