Configure: suppress $multilib with non-system $prefix [from HEAD].

PR: 2307
This commit is contained in:
Andy Polyakov 2010-07-16 08:14:11 +00:00
parent c4488936b2
commit 9102342795

View File

@ -1093,6 +1093,12 @@ my $ar = $ENV{'AR'} || "ar";
my $arflags = $fields[$idx_arflags];
my $multilib = $fields[$idx_multilib];
# if $prefix/lib$multilib is not an existing directory, then
# assume that it's not searched by linker automatically, in
# which case adding $multilib suffix causes more grief than
# we're ready to tolerate, so don't...
$multilib="" if !-d "$prefix/lib$multilib";
$libdir="lib$multilib" if $libdir eq "";
$cflags = "$cflags$exp_cflags";