]> granicus.if.org Git - openssl/commitdiff
Unix Makefile: Make sure to use $(PERL) when running ./Configure
authorRichard Levitte <levitte@openssl.org>
Tue, 8 Nov 2016 23:14:56 +0000 (00:14 +0100)
committerRichard Levitte <richard@levitte.org>
Wed, 9 Nov 2016 01:37:53 +0000 (02:37 +0100)
For consistency, it's better to use the perl that was specified to
Configure last time it was called.

Use case:

perl v5.8.8 was first along $PATH, perl v5.22.2 was available and
specified as: PERL=/opt/local/bin/perl ./config.  When make wanted to
reconfigure and called './Configure reconf', configuration broke down,
complaining about a perl that's too old.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1884)
(cherry picked from commit 12ccb021be9e1c4c947e020ea2079e985b329a8a)

Configurations/unix-Makefile.tmpl

index 953fc1a8daa9c0f1ac94be9f7a72b242b4a93619..9f0990ca39d5726e85e07c806665f9e6091e5d83 100644 (file)
@@ -761,7 +761,7 @@ tar:
        cd $(SRCDIR); ls -l $(TARFILE).gz
 
 dist:
-       @$(MAKE) PREPARE_CMD='./Configure dist' tar
+       @$(MAKE) PREPARE_CMD='$(PERL) ./Configure dist' tar
 
 # Helper targets #####################################################
 
@@ -820,7 +820,7 @@ openssl.pc:
 configdata.pm: $(SRCDIR)/Configure $(SRCDIR)/config {- join(" ", @{$config{build_file_templates}}, @{$config{build_infos}}, @{$config{conf_files}}) -}
        @echo "Detected changed: $?"
        @echo "Reconfiguring..."
-       $(SRCDIR)/Configure reconf
+       $(PERL) $(SRCDIR)/Configure reconf
        @echo "**************************************************"
        @echo "***                                            ***"
        @echo "***   Please run the same make command again   ***"