mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
Fix makefiles for msys2/mingw64.
This commit is contained in:
parent
abb1c22ba9
commit
8c37848647
3 changed files with 26 additions and 16 deletions
20
third_party/minizip/Makefile
vendored
20
third_party/minizip/Makefile
vendored
|
|
@ -11,18 +11,24 @@ endif
|
|||
|
||||
UNAME := $(shell uname)
|
||||
|
||||
# Check for MinGW/MinGW64/Cygwin environments.
|
||||
ifneq (,$(findstring MINGW, $(UNAME)))
|
||||
MING_LIKE = y
|
||||
endif
|
||||
ifneq (,$(findstring MSYS, $(UNAME)))
|
||||
MING_LIKE = y
|
||||
endif
|
||||
ifneq (,$(findstring CYGWIN, $(UNAME)))
|
||||
MING_LIKE = y
|
||||
endif
|
||||
|
||||
FPIC = -fPIC
|
||||
CFLAGS = -O3 -DNOCRYPT -DNOUNCRYPT
|
||||
|
||||
# Change make options on MinGW.
|
||||
ifneq (,$(findstring MINGW, $(UNAME)))
|
||||
# Change make options on MinGW/MinGW64/Cygwin.
|
||||
ifdef MING_LIKE
|
||||
FPIC =
|
||||
CC = gcc
|
||||
endif
|
||||
|
||||
# Change make options on Cygwin.
|
||||
ifneq (,$(findstring CYGWIN, $(UNAME)))
|
||||
FPIC =
|
||||
CFLAGS += -DUSE_FILE32API
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue