diff options
author | Richard Levitte <levitte@openssl.org> | 2016-07-02 16:39:15 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-07-04 15:40:31 +0200 |
commit | d513369bfa03e92c3289109560da4062b1d3625d (patch) | |
tree | e108558e303c7ef257595d70be396f9949b0d934 /Configure | |
parent | Fix broken loading of client CAs (diff) | |
download | openssl-d513369bfa03e92c3289109560da4062b1d3625d.tar.xz openssl-d513369bfa03e92c3289109560da4062b1d3625d.zip |
perl: Separate compile-time environment from runtime environment
Make it possible to have a separate and different perl command string
for installable scripts than we use when building, with the
environment variable HASHBANGPERL. Its value default to the same as
the environment PERL if it's defined, otherwise '/usr/bin/env perl'.
Note: this is only relevant for Unix-like environments.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -913,7 +913,11 @@ $config{cross_compile_prefix} = $ENV{'CROSS_COMPILE'} if $config{cross_compile_prefix} eq ""; # Allow overriding the names of some tools. USE WITH CARE +# Note: only Unix cares about HASHBANGPERL... that explains +# the default string. $config{perl} = $ENV{'PERL'} || ($^O ne "VMS" ? $^X : "perl"); +$config{hashbangperl} = + $ENV{'HASHBANGPERL'} || $ENV{'PERL'} || "/usr/bin/env perl"; $target{cc} = $ENV{'CC'} || $target{cc} || "cc"; $target{ranlib} = $ENV{'RANLIB'} || $target{ranlib} || (which("$config{cross_compile_prefix}ranlib") ? |