From: Randall S. Becker Date: Thu, 18 Mar 2021 22:45:28 +0000 (-0600) Subject: Add $(PERL) to util/wrap.pl execution to avoid env incompatibilities X-Git-Tag: openssl-3.0.0-alpha14~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92a979b4034cd6c1da9cc71736929eb4161359d2;p=thirdparty%2Fopenssl.git Add $(PERL) to util/wrap.pl execution to avoid env incompatibilities Using /usr/bin/env on the NonStop ia64 and x86 platforms causes a translation of - to -i as part of the implicit interpretation by env of its arguments prior to handing off the arguments to perl. This causes the FIPS module configuration to be written to a file named -i instead of going to stdout. CLA: Trivial Fixes: #14612 Signed-off-by: Randall S. Becker Reviewed-by: Tomas Mraz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/14613) --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 249652296cc..d0192aa32eb 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -1433,9 +1433,10 @@ EOF # Also redo $gen0, to ensure that we have the proper extension where # necessary. $gen0 = platform->bin($gen0); + # Use $(PERL) to execute wrap.pl directly to avoid calling env return <<"EOF"; $args{src}: $gen0 $deps \$(BLDDIR)/util/wrap.pl - \$(BLDDIR)/util/wrap.pl $gen0$gen_args > \$@ + \$(PERL) \$(BLDDIR)/util/wrap.pl $gen0$gen_args > \$@ EOF } else { #