mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-16 07:45:12 -04:00
Makefile: support plain 'gcc' being MinGW
This commit is contained in:
parent
94145eb14e
commit
a34c5e0b14
6
Makefile
6
Makefile
@ -39,9 +39,11 @@ PIC_REQUIRED := 1
|
||||
HARD_LINKS := 1
|
||||
|
||||
# Compiling for Windows with MinGW?
|
||||
ifneq ($(findstring -mingw,$(CC)),)
|
||||
ifneq ($(findstring -mingw,$(shell $(CC) -dumpmachine 2>/dev/null)),)
|
||||
ifeq ($(AR),ar)
|
||||
AR := $(patsubst %-gcc,%-ar,$(CC))
|
||||
ifneq ($(findstring -mingw,$(CC)),)
|
||||
AR := $(patsubst %-gcc,%-ar,$(CC))
|
||||
endif
|
||||
endif
|
||||
STATIC_LIB_SUFFIX := .lib
|
||||
SHARED_LIB_SUFFIX := .dll
|
||||
|
Loading…
x
Reference in New Issue
Block a user