Commit d74b131
committed
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.o1 parent 676d803 commit d74b131
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
585 | | - | |
586 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
587 | 589 | | |
588 | 590 | | |
589 | 591 | | |
| |||
0 commit comments