mk: check for Apple in GCC

This commit is contained in:
Alfred E. Heggestad 2013-08-17 09:28:13 +00:00
parent 3284ff0517
commit 483240ebff

View file

@ -224,7 +224,9 @@ ifeq ($(OS),linux)
endif
ifeq ($(OS),darwin)
CFLAGS += -fPIC -dynamic -DDARWIN
ifneq (,$(findstring Apple, $(CC_LONGVER)))
CFLAGS += -Wshorten-64-to-32
endif
DFLAGS := -MD
LFLAGS += -fPIC
SH_LFLAGS += -dynamiclib -dylib