From 0d9b5fa3b44794c6830641f6cf2e6d840d1e9315 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Mon, 14 May 2018 17:06:04 +0200 Subject: [PATCH] windows-makefile.tmpl: delete export library prior link. LINK can outsmart itself and choose to not update export .lib upon corresponding .dll re-link. Since dependency is between .lib and all .obj-s, re-compilation of any .obj makes NMAKE relink .dll and all .exe-s over and over... Reviewed-by: Rich Salz --- Configurations/windows-makefile.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/Configurations/windows-makefile.tmpl b/Configurations/windows-makefile.tmpl index 0752bbe2a3..49af571435 100644 --- a/Configurations/windows-makefile.tmpl +++ b/Configurations/windows-makefile.tmpl @@ -627,6 +627,7 @@ EOF return <<"EOF" $target: $deps IF EXIST $shlib$shlibext.manifest DEL /F /Q $shlib$shlibext.manifest + IF EXIST \$@ DEL /F /Q \$@ \$(LD) \$(LDFLAGS) \$(LIB_LDFLAGS) \\ /implib:\$@ \$(LDOUTFLAG)$shlib$shlibext$shared_def @<< || (DEL /Q \$(\@B).* $shlib.* && EXIT 1) $objs -- 2.34.1