]> git.kaiwu.me - nginx.git/commitdiff
Configure: fixed "make install" when cross-compiling to Windows.
authorPiotr Sikora <piotr@aviatrix.com>
Mon, 26 Feb 2024 20:00:46 +0000 (20:00 +0000)
committerPiotr Sikora <piotr@aviatrix.com>
Mon, 26 Feb 2024 20:00:46 +0000 (20:00 +0000)
Signed-off-by: Piotr Sikora <piotr@aviatrix.com>
auto/install

index c764fdd2f773ee407046f02b1c05b7a03ac6942d..7f73e4bffd39305b4a5d65b28671b77ff39b12d4 100644 (file)
@@ -112,7 +112,7 @@ install:    build $NGX_INSTALL_PERL_MODULES
        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'