From: Dr. Stephen Henson Date: Wed, 28 Oct 2009 14:00:54 +0000 (+0000) Subject: PR: 2081 X-Git-Tag: OpenSSL_0_9_8m-beta1~76 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=23a4ccd17895c68015971a3780eacb0420db6807;p=oweals%2Fopenssl.git PR: 2081 Submitted by: Mike Frysinger Approved by: steve@openssl.org Respect AR and RANLIB environment variables if set. --- diff --git a/Configure b/Configure index 445298b068..eea7efda9d 100755 --- a/Configure +++ b/Configure @@ -995,7 +995,8 @@ my $shared_target = $fields[$idx_shared_target]; my $shared_cflag = $fields[$idx_shared_cflag]; my $shared_ldflag = $fields[$idx_shared_ldflag]; my $shared_extension = $fields[$idx_shared_extension]; -my $ranlib = $fields[$idx_ranlib]; +my $ranlib = $ENV{'RANLIB'} || $fields[$idx_ranlib]; +my $ar = $ENV{'AR'} || "ar"; my $arflags = $fields[$idx_arflags]; if ($fips) @@ -1507,6 +1508,7 @@ while () } else { s/^CC=.*$/CC= $cc/; + s/^AR=.*/AR= $ar/; s/^RANLIB=.*/RANLIB= $ranlib/; } s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/ if $cc eq "gcc";