mirror of
https://github.com/capstone-engine/capstone
synced 2026-08-11 16:26:07 -04:00
Normalize IS_MINGW checks (and include MSYS, like main Makefile) (#1318)
Following in the steps of #1290
This commit is contained in:
parent
d2d30bbdea
commit
02497b1c80
2 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ IS_CYGWIN := $(shell $(CC) -dumpmachine 2>/dev/null | grep -i cygwin | wc -l)
|
|||
ifeq ($(IS_CYGWIN),1)
|
||||
LIBCAPSTONE = capstone.lib
|
||||
else
|
||||
IS_MINGW := $(shell $(CC) --version 2>/dev/null | grep -i mingw | wc -l)
|
||||
IS_MINGW := $(shell $(CC) --version 2>/dev/null | grep -i "\(mingw\|MSYS\)" | wc -l)
|
||||
ifeq ($(IS_MINGW),1)
|
||||
LIBCAPSTONE = capstone.lib
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ BIN_EXT = .exe
|
|||
AR_EXT = lib
|
||||
else
|
||||
# mingw?
|
||||
IS_MINGW := $(shell $(CC) --version | grep -i mingw | wc -l)
|
||||
IS_MINGW := $(shell $(CC) --version 2>/dev/null | grep -i "\(mingw\|MSYS\)" | wc -l)
|
||||
ifeq ($(IS_MINGW),1)
|
||||
CFLAGS := $(CFLAGS:-fPIC=)
|
||||
BIN_EXT = .exe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue