mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-17 08:17:30 -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
|
HARD_LINKS := 1
|
||||||
|
|
||||||
# Compiling for Windows with MinGW?
|
# Compiling for Windows with MinGW?
|
||||||
ifneq ($(findstring -mingw,$(CC)),)
|
ifneq ($(findstring -mingw,$(shell $(CC) -dumpmachine 2>/dev/null)),)
|
||||||
ifeq ($(AR),ar)
|
ifeq ($(AR),ar)
|
||||||
|
ifneq ($(findstring -mingw,$(CC)),)
|
||||||
AR := $(patsubst %-gcc,%-ar,$(CC))
|
AR := $(patsubst %-gcc,%-ar,$(CC))
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
STATIC_LIB_SUFFIX := .lib
|
STATIC_LIB_SUFFIX := .lib
|
||||||
SHARED_LIB_SUFFIX := .dll
|
SHARED_LIB_SUFFIX := .dll
|
||||||
PROG_SUFFIX := .exe
|
PROG_SUFFIX := .exe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user