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:
parent
3574cb6d2f
commit
6987258cab
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue