Fixed build with Cygwin and MinGW-w64 when *not* using the "shared" library.

This commit is contained in:
LoRd_MuldeR 2024-11-14 23:14:06 +01:00
parent d0deac3a65
commit 1f26d15160
Signed by: mulder
GPG Key ID: 2B5913365F57E03F

View File

@ -79,7 +79,7 @@ endif
ifneq (,$(firstword $(filter %mingw32 %-windows-gnu %-cygwin %-cygnus,$(MACHINE)))) ifneq (,$(firstword $(filter %mingw32 %-windows-gnu %-cygwin %-cygnus,$(MACHINE))))
EXE_SUFFIX := .exe EXE_SUFFIX := .exe
LIB_SUFFIX := .$(if $(subst 0,,$(SHARED)),dll,lib) LIB_SUFFIX := .$(if $(subst 0,,$(SHARED)),dll,a)
else else
LIB_SUFFIX := .$(if $(subst 0,,$(SHARED)),$(if $(findstring -apple-darwin,$(MACHINE)),dylib,so),a) LIB_SUFFIX := .$(if $(subst 0,,$(SHARED)),$(if $(findstring -apple-darwin,$(MACHINE)),dylib,so),a)
endif endif