From d343c92dffd2c3999d704e11e99cf7b3d3ccfc82 Mon Sep 17 00:00:00 2001 From: steven Date: Sun, 15 Nov 2009 21:51:59 +0000 Subject: [PATCH] look for .la file associated with -lfoo argument in the cwd too seems to fix a handful of ports --- infrastructure/build/libtool | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infrastructure/build/libtool b/infrastructure/build/libtool index ea5e23dbcd7..3a0cba84b5c 100755 --- a/infrastructure/build/libtool +++ b/infrastructure/build/libtool @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: libtool,v 1.114 2009/10/18 08:32:19 steven Exp $ +# $OpenBSD: libtool,v 1.115 2009/11/15 21:51:59 steven Exp $ # Copyright (c) 2007-2009 Steven Mestdagh # @@ -598,6 +598,8 @@ sub find # sort dir search order by priority # XXX not fully correct yet my @sdirs = sort { $dirs->{$b} <=> $dirs->{$a} } keys %$dirs; + # search in cwd as well + unshift @sdirs, '.'; Trace::debug {"searching .la for $l\n"}; Trace::debug {"search path= ", join(':', @sdirs), "\n"}; foreach my $d (@sdirs) {