Branch: refs/heads/maint-5.30 Home: https://github.com/Perl/perl5 Commit: 5093e0eb37ed945960a3b3184f234d51a3cf226a https://github.com/Perl/perl5/commit/5093e0eb37ed945960a3b3184f234d51a3cf226a Author: Nicolas R <atoo...@cpan.org> Date: 2020-03-09 (Mon, 09 Mar 2020)
Changed paths: M t/porting/libperl.t Log Message: ----------- Fix libperl.t 'no symbols' warning on darwin darwin can compile perlapi.o without any symbols. libperl.t is running 'mm -m ./libperl.a' and is is viewing the 'no symbols' stderr output from perlapi.o then fail. 'nm -g perlapi.o' We can either add a dummy symbol to libperl via regen/embed.pl or simply ignore that error in a generic way, or avoid compiling that file when not needed. Notice the error with nm 11.0.0 Apple LLVM version 11.0.0 (clang-1100.0.33.8) The older version of nm does not raise a warning for empty .o files. Steps to reproduce: echo '' > test.c; gcc -o test.o -c test.c; nm -g test.o (cherry picked from commit d74b131b0ba952f0c894f2462279e1dc12f94d82)