mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-16 15:56:08 -04:00
Makefile: support plain 'gcc' being MinGW
This commit is contained in:
parent
94145eb14e
commit
a34c5e0b14
4
Makefile
4
Makefile
@ -39,10 +39,12 @@ 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)
|
||||
ifneq ($(findstring -mingw,$(CC)),)
|
||||
AR := $(patsubst %-gcc,%-ar,$(CC))
|
||||
endif
|
||||
endif
|
||||
STATIC_LIB_SUFFIX := .lib
|
||||
SHARED_LIB_SUFFIX := .dll
|
||||
PROG_SUFFIX := .exe
|
||||
|
Loading…
x
Reference in New Issue
Block a user