From 9102342795152852468fe0a597e5ae63c6fdb178 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Fri, 16 Jul 2010 08:14:11 +0000 Subject: [PATCH] Configure: suppress $multilib with non-system $prefix [from HEAD]. PR: 2307 --- Configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Configure b/Configure index e3b13b9d43..f2dde19fac 100755 --- a/Configure +++ b/Configure @@ -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"; -- 2.40.0