diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-10-28 14:00:54 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-10-28 14:00:54 +0000 |
commit | 23a4ccd17895c68015971a3780eacb0420db6807 (patch) | |
tree | 05dc0c027597876677edb958b963ad6c09f9b72f /Configure | |
parent | 2b4d877a274b850ffdcfec56e6d19ad84feed459 (diff) |
PR: 2081
Submitted by: Mike Frysinger <vapier@gentoo.org>
Approved by: steve@openssl.org
Respect AR and RANLIB environment variables if set.
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 (<IN>) } else { s/^CC=.*$/CC= $cc/; + s/^AR=.*/AR= $ar/; s/^RANLIB=.*/RANLIB= $ranlib/; } s/^MAKEDEPPROG=.*$/MAKEDEPPROG= $cc/ if $cc eq "gcc"; |