package/perl: link with -lintl if needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 21 Feb 2021 17:45:49 +0000 (18:45 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 2 Mar 2021 20:59:50 +0000 (21:59 +0100)
commite0a291244002ab19f8fc8a0adb215b51888eb5aa
treedfe70c95d49797b6255dd030d26a876bb4fa3d4d
parent563ecafd22eb89dcbdda54bf433b69613ba72903
package/perl: link with -lintl if needed

Link with TARGET_NLS_LIBS if needed to avoid the following build failure
with perl in version 5.32:

/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-gcc -lm -Wl,-E -o perl perlmain.o libperl.a  -lm -lcrypt -lpthread -ldl
/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: libperl.a(locale.o): in function `S_emulate_setlocale':
/home/buildroot/autobuild/instance-3/output-1/build/perl-5.32.1/locale.c:1182: undefined reference to `libintl_textdomain'

An upstream issue has been opened in:
https://github.com/Perl/perl5/issues/18467

Fixes:
 - http://autobuild.buildroot.org/results/9df8d8d28006845b4f927548f8856dfa8f79802b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/perl/perl.mk