[PATCH] Configure: fix "make install" when cross-compiling to Windows

Piotr Sikora piotr at aviatrix.com
Wed Feb 28 01:25:30 UTC 2024


# HG changeset patch
# User Piotr Sikora <piotr at aviatrix.com>
# Date 1708977646 0
#      Mon Feb 26 20:00:46 2024 +0000
# Branch patch018
# Node ID ea1ab31c166c52372b40429a1cccece9ec9e003b
# Parent  dd95daa55cf6131a7e845edd6ad3b429bcef6f98
Configure: fix "make install" when cross-compiling to Windows.

Signed-off-by: Piotr Sikora <piotr at aviatrix.com>

diff -r dd95daa55cf6 -r ea1ab31c166c auto/install
--- a/auto/install	Mon Feb 26 20:00:43 2024 +0000
+++ b/auto/install	Mon Feb 26 20:00:46 2024 +0000
@@ -112,7 +112,7 @@
 	test ! -f '\$(DESTDIR)$NGX_SBIN_PATH' \\
 		|| mv '\$(DESTDIR)$NGX_SBIN_PATH' \\
 			'\$(DESTDIR)$NGX_SBIN_PATH.old'
-	cp $NGX_OBJS/nginx '\$(DESTDIR)$NGX_SBIN_PATH'
+	cp $NGX_OBJS/nginx$ngx_binext '\$(DESTDIR)$NGX_SBIN_PATH'
 
 	test -d '\$(DESTDIR)$NGX_CONF_PREFIX' \\
 		|| mkdir -p '\$(DESTDIR)$NGX_CONF_PREFIX'


More information about the nginx-devel mailing list