Always install .lib on Windows because GNUmakefile may use different variable for headers

This commit is contained in:
2025-10-21 09:33:45 +02:00
parent c5573e2e8c
commit d841bd8aef
+2 -4
View File
@@ -982,10 +982,8 @@ ${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 if this is a dependency and thus has headers
ifneq ($(words ${HDRS}),0)
INSTALL_LIBS += $(addprefix ${INSTALL_LIB}/,${LIB_PREFIX}${PRJ}${LIB_SUFFIX})
endif
ifeq (${OS_CLASS},WIN32) # WIN32 needs .lib for linking
INSTALL_LIBS += $(addprefix ${INSTALL_LIB}/,${LIB_PREFIX}${PRJ}${LIB_SUFFIX})
endif
# Problem: sometimes arch dependent deps are (manually) required even if no code exists