Fix bitfield problem when compiling in native mingw

master
Fred Sundvik 2017-07-11 22:05:01 +03:00
parent 78545b9509
commit 7f67abd7d7
1 changed files with 5 additions and 0 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