Author: randyk Date: Sun Apr 23 10:40:21 2006 New Revision: 396298 URL: http://svn.apache.org/viewcvs?rev=396298&view=rev Log: Avoid bogus "Note (probably harmless): No library found for ..." warnings on Win32.
Modified: perl/modperl/trunk/lib/Apache2/Build.pm Modified: perl/modperl/trunk/lib/Apache2/Build.pm URL: http://svn.apache.org/viewcvs/perl/modperl/trunk/lib/Apache2/Build.pm?rev=396298&r1=396297&r2=396298&view=diff ============================================================================== --- perl/modperl/trunk/lib/Apache2/Build.pm (original) +++ perl/modperl/trunk/lib/Apache2/Build.pm Sun Apr 23 10:40:21 2006 @@ -1117,7 +1117,9 @@ # first use apu_config_path and then apr_config_path in order to # resolve the symbols right during linking for ($self->apu_config_path, $self->apr_config_path) { - if (my $link = $_ && -x $_ && qx{$_ --link-ld --ldflags --libs}) { + my $flags = '--link-ld --libs'; + $flags .= ' --ldflags' unless (WIN32); + if (my $link = $_ && -x $_ && qx{$_ $flags}) { chomp $link; # Change '/path/to/libanything.la' to '-L/path/to -lanything'