From: Dr. Stephen Henson Date: Wed, 28 Oct 2009 14:00:29 +0000 (+0000) Subject: PR: 2081 X-Git-Tag: OpenSSL-fips-2_0-rc1~1470 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=970097ae2ccab7328132193ac4d5e1ae5d8d623e;p=openssl 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 261c54c7a2..b3220c058f 100755 --- a/Configure +++ b/Configure @@ -1090,7 +1090,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]; my $multilib = $fields[$idx_multilib]; @@ -1500,6 +1501,7 @@ while () } else { s/^CC=.*$/CC= $cc/; + s/^AR=.*/AR= $ar/; s/^RANLIB=.*/RANLIB= $ranlib/; s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/ if $cc eq "gcc"; }