﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
2422	Issue with OpenSSL Makefile Perl Command and %cd% not resolving properly	justdan23@…		"Version: **master** (and) **stable-1.22** branches
File: **nginx/auto/lib/openssl/Makefile**
Platform: VC-WIN64A on Windows OS using MSYS2 (64-bit) and Mingw64 (64-bit)

Issue: perl Configure changed to VC-WIN64A manually (but occurs with VC-WIN32), and results in %cd% not resolving to objs/lib/ folder causing an error where it is unable to find the folder pre location.


{{{
# Copyright (C) Igor Sysoev
# Copyright (C) Nginx, Inc.

all:
	export cd=/home/justd/nginx/dist

	cd $(OPENSSL)
	
	perl Configure VC-WIN64A no-shared no-threads			\
		--prefix=""%cd%/openssl"" 				\
		--openssldir=""%cd%/openssl/ssl"" 			\
		$(OPENSSL_OPT)

	if exist ms\do_ms.bat (						\
		ms\do_ms						\
		&& $(MAKE) -f ms\nt.mak					\
		&& $(MAKE) -f ms\nt.mak install				\
	) else (							\
		$(MAKE)							\
		&& $(MAKE) install_sw					\
	)

}}}

Error Output:
{{{
$ make
make -f objs/Makefile
make[1]: Entering directory '/home/justd/nginx'
make -f auto/lib/openssl/makefile.msvc                                  OPENSSL=""objs/lib/openssl"" OPENSSL_OPT=""""
make[2]: Entering directory '/home/justd/nginx'
export cd=/home/justd/nginx/dist
cd objs/lib/openssl
perl Configure VC-WIN64A no-shared no-threads                   \
        --prefix=""%cd%/openssl""                                 \
        --openssldir=""%cd%/openssl/ssl""                         \

Can't open perl script ""Configure"": No such file or directory
make[2]: *** [auto/lib/openssl/makefile.msvc:10: all] Error 2
make[2]: Leaving directory '/home/justd/nginx'
make[1]: *** [objs/Makefile:1825: objs/lib/openssl/openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory '/home/justd/nginx'
make: *** [Makefile:10: build] Error 2
}}}

I uploaded the zip of the entire dev environment at the URL below:
​https://1drv.ms/u/s!AqtOkpGwHMQ2rBP002wedbn5n1Lx?e=W3zXoP"	defect	closed	blocker		nginx-core	1.22.x	invalid		justdan23@…	justdan23@gmail.com	Not Able to Build on Windows using MSYS2 and MingW64
