Change .if to .elif to prevent the current directory path search for a
perl executable from overriding the object directory path search where perl is most likely to be. Most people haven't seen this because it defaulted to /usr/bin/perl which might be OK as a fallback, but when bootstrapping a new version (or the *first* version on alpha), we don't really want to use /usr/bin/perl.
This commit is contained in:
parent
266f0ba434
commit
b0c3b27388
@ -18,8 +18,7 @@ NOMAN= yes
|
||||
# If perl exists in none of these places, something is horribly wrong.
|
||||
.if exists(${.OBJDIR}/../perl/perl)
|
||||
PERL=${.OBJDIR}/../perl/perl
|
||||
.endif
|
||||
.if !defined(PERL) && exists(${.CURDIR}/../perl/perl)
|
||||
.elif !defined(PERL) && exists(${.CURDIR}/../perl/perl)
|
||||
PERL=${.CURDIR}/../perl/perl
|
||||
.else
|
||||
PERL= /usr/bin/perl
|
||||
|
Loading…
x
Reference in New Issue
Block a user