Skip to content

Commit

Permalink
Merge pull request #35 from kraj/clang
Browse files Browse the repository at this point in the history
Make function checks more robust within shared libs
  • Loading branch information
toddr authored Nov 28, 2023
2 parents 2d9712c + 1735a78 commit d1bee1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ main ()
#if defined (__stub_$f) || defined (__stub___$f)
choke me
#else
f = $f ();
f = $f;
f();
#endif
;
Expand All @@ -173,7 +174,7 @@ ESQ

close(TST);
print "Looking for $f()" . "." x (13-length($f)) . " ";
if (system("$cfg{'cc'} $flags $funcs{$f} functest_$f.c > functest_$f.log 2>&1")) {
if (system("$cfg{'cc'} $flags -Wl,--no-undefined $funcs{$f} functest_$f.c > functest_$f.log 2>&1")) {
print "not found.\n";
} else {
$define{"-DHAVE_\U$f"} = undef;
Expand Down

0 comments on commit d1bee1b

Please sign in to comment.