diff --git a/infrastructure/build/libtool b/infrastructure/build/libtool index dda390f7f7f..71f6b48f65c 100755 --- a/infrastructure/build/libtool +++ b/infrastructure/build/libtool @@ -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 # @@ -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) {