diff -r 2a20cee18add PCbuild/build_ssl.py --- a/PCbuild/build_ssl.py Mon Jun 18 08:33:13 2012 -0600 +++ b/PCbuild/build_ssl.py Mon Jun 18 12:45:54 2012 -0600 @@ -236,8 +236,11 @@ copy(r"crypto\buildinf_%s.h" % arch, r"crypto\buildinf.h") copy(r"crypto\opensslconf_%s.h" % arch, r"crypto\opensslconf.h") - #makeCommand = "nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile) makeCommand = "nmake /nologo -f \"%s\"" % makefile + # Ensure that there is a runnable Perl executable. Perl could be + # located in the default location (\Perl\bin), but not on the PATH. + if perl is not None: + makeCommand += " PERL=\"%s\"" % perl print("Executing ssl makefiles:", makeCommand) sys.stdout.flush() rc = os.system(makeCommand)