Check only for mingw substring

This commit is contained in:
Anton Kochkov 2016-07-29 15:42:38 +03:00 committed by GitHub
parent 5cc983a657
commit 56c82c799f

View File

@ -10,7 +10,7 @@ SOVER=${EXT_SO}
LDFLAGS+=-shared
LDFLAGS_SHARED?=-shared
else
ifneq (,$(findstring mingw32,${OSTYPE})$(findstring mingw64,${OSTYPE})$(findstring msys,${OSTYPE}))
ifneq (,$(findstring mingw,${OSTYPE})$(findstring msys,${OSTYPE}))
CFLAGS+=-DMINGW32=1
EXT_SO=dll
SOVER=${EXT_SO}