only try to install .lib for Windows if .dll exists

This commit is contained in:
2026-01-20 11:27:18 +01:00
parent e7501dbc4b
commit 0f22ca91ec
+1 -1
View File
@@ -983,7 +983,7 @@ ${MODULEDBD}: ${DBDFILES}
# Install everything.
INSTALL_LIBS = $(addprefix ${INSTALL_LIB}/,${MODULELIB} $(filter-out %.lib,$(call SONAME,${SHRLIBS_})))
ifeq (${OS_CLASS},WIN32) # WIN32 needs .lib for linking
INSTALL_LIBS += $(addprefix ${INSTALL_LIB}/,${LIB_PREFIX}${PRJ}${LIB_SUFFIX})
INSTALL_LIBS += $(addprefix ${INSTALL_LIB}/,${MODULELIB:%${SHRLIB_SUFFIX}=%${LIB_SUFFIX}})
endif
# Problem: sometimes arch dependent deps are (manually) required even if no code exists