https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66753
Bug ID: 66753 Summary: contrib/make_sunver.pl doesn't digest libraries very well Product: gcc Version: 4.9.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: richard at netbsd dot org Target Milestone: --- The following patch gets over issues with libraries (on pkgsrc for SunOS) where, for example, '-lrt' is passed (not needing any treatment whatsoever). diff --git a/contrib/make_sunver.pl b/contrib/make_sunver.pl index 8a90b1f..bfd1260 100644 --- a/contrib/make_sunver.pl +++ b/contrib/make_sunver.pl @@ -43,6 +43,8 @@ foreach $file (@ARGV) { if (($so = $file) =~ s/\.a$/.so/ && -e $so) { printf STDERR "omitted $file -> $so\n"; push (@SHAREDOBJS, $so); + } elsif ( $file =~ /^-l/ ) { + printf STDERR "omitted $file\n"; } else { push (@OBJECTS, $file); }