1
0
Fork 0

Merge pull request #1491 from fredizzimo/msys2

Add support for msys2 build environment
This commit is contained in:
Jack Humbert 2017-07-13 14:24:26 -04:00 committed by GitHub
commit 6ed8ce4f59
12 changed files with 247 additions and 85 deletions

View file

@ -1,3 +1,5 @@
SYSTEM_TYPE := $(shell gcc -dumpmachine)
CC = gcc
OBJCOPY =
OBJDUMP =
@ -14,6 +16,9 @@ COMPILEFLAGS += -funsigned-bitfields
COMPILEFLAGS += -ffunction-sections
COMPILEFLAGS += -fdata-sections
COMPILEFLAGS += -fshort-enums
ifneq ($(findstring mingw, ${SYSTEM_TYPE}),)
COMPILEFLAGS += -mno-ms-bitfields
endif
CFLAGS += $(COMPILEFLAGS)
CFLAGS += -fno-inline-small-functions