[PATCH] Configure: fixed clean OpenSSL builds on Windows
Maxim Dounin
mdounin at mdounin.ru
Tue Nov 24 02:46:29 UTC 2026
# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1795484152 -10800
# Tue Nov 24 04:35:52 2026 +0300
# Node ID 963bfb9be4bb29597936484c80e8514e25982d51
# Parent 146c43e035acbde493604cf4645ac3186a2cc896
Configure: fixed clean OpenSSL builds on Windows.
Calling "del" on Windows fails if the target file does not exist, so the
change in 9605:146c43e035ac broke clean OpenSSL builds on Windows. The
fix is to test if the file exists before trying to delete it.
diff --git a/auto/lib/openssl/makefile.msvc b/auto/lib/openssl/makefile.msvc
--- a/auto/lib/openssl/makefile.msvc
+++ b/auto/lib/openssl/makefile.msvc
@@ -6,7 +6,8 @@
all:
cd $(OPENSSL)
- del /q /f openssl\include\openssl\ssl.h
+ if exist openssl\include\openssl\ssl.h \
+ del /q /f openssl\include\openssl\ssl.h
perl Configure $(OPENSSL_TARGET) no-shared no-threads \
--prefix="%cd%/openssl" \
More information about the nginx-devel
mailing list