Subject: Re: [PATCH 0/2] Use env for all perl invocations

From: Junio C Hamano <[email-masked]>
Date: Wed, 11 Jan 2017 22:21:05 -0800

Pat Pannuto <[email-masked]> writes:

> I spent a little while debugging why git-format-patch refused to believe
> that SSL support was installed (Can't locate Net/SMTP/SSL.pm in @INC...)
> Turns out that it was installed for my system's preferred /usr/local/bin/perl,
> but not for git-format-patch's hard-coded /usr/bin/perl; changing the shebang
> allowed git format-patch to work as expected.

Isn't that an indication that you are not building correctly?
Perhaps

    $ git grep 'Define PERL_' Makefile
    $ make PERL_PATH=/usr/local/bin/perl

would help?