Fix cygwin DLL naming

Cygwin, like macOS, uses an extension to "recognize" something as being
a shared library. In that case, the extension is .dll.

Thinking about it, it's the naming in Linux that is illogical, in the
sense that the extension is before the count
This commit is contained in:
Christophe de Dinechin 2018-11-09 11:53:44 +01:00
parent 3574cb6d2f
commit 6987258cab
1 changed files with 5 additions and 1 deletions

View File

@ -24,9 +24,13 @@ OS_NAME_BUILDENV_cygwin=windows
include $(MIQ)config.gnu.mk
# Cygwin uses Windows extensions, e.g. ld looks for .dll files
EXE_EXT= .exe
LIB_EXT= .a
DLL_EXT= .dll
OBJ_EXT= .obj
MAKE_DLL= $(LD) -shared $(MIQ_LDFLAGS) $(MIQ_TOLINK) -o $@
# Because of the above, we need to put the number before the extesion
# e.g. where Linux would have libfoo.so.1.3.2, cygwin has libfoo.1.3.2.dll
MIQ_NOINSTALL= $(@:%.install_dll=%)
MIQ_DLLNAME= $(MIQ_NOINSTALL:%$(DLL_EXT)=%$(PRODUCTS_VERSION:%=.$(MIQ_V_VERSION))$(DLL_EXT))