small tweak

This commit is contained in:
steven 2008-11-23 08:47:05 +00:00
parent 1bcc77e40a
commit ae388464a0

View File

@ -1,5 +1,5 @@
#!/usr/bin/perl
# $OpenBSD: libtool,v 1.71 2008/11/22 10:04:19 steven Exp $
# $OpenBSD: libtool,v 1.72 2008/11/23 08:47:05 steven Exp $
# Copyright (c) 2007-2008 Steven Mestdagh <steven@openbsd.org>
#
@ -1302,14 +1302,12 @@ sub internal_parse_linkargs
my $dlname = $lainfo->{'dlname'};
my $oldlib = $lainfo->{'old_library'};
my $libdir = $lainfo->{'libdir'};
if ($libdir ne '' && $la) {
push @$deplibs, $fulla;
}
# the following should happen only in pass 2
if ($la) {
push(@$result, $a);
push(@$deplibs, $fulla) if ($libdir ne '');
next;
}
# the following should happen only in pass 2
push @$orderedlibs, $key;
# get the name we need (this may include a -release)
if (!$dlname && !$oldlib) {