makefile: Fix -fwhole-program warnings on OS X with newest Xcode

This commit is contained in:
Mark Pizzolato 2016-03-25 17:26:30 -07:00
parent d2269f8bd5
commit fb9e0ac354

View file

@ -809,6 +809,9 @@ ifneq ($(DEBUG),)
else else
ifneq (clang,$(findstring clang,$(COMPILER_NAME))) ifneq (clang,$(findstring clang,$(COMPILER_NAME)))
CFLAGS_O = -O2 CFLAGS_O = -O2
ifeq (Darwin,$(OSTYPE))
NO_LTO = 1
endif
else else
ifeq (Darwin,$(OSTYPE)) ifeq (Darwin,$(OSTYPE))
CFLAGS_O += -O4 -fno-strict-overflow -flto -fwhole-program CFLAGS_O += -O4 -fno-strict-overflow -flto -fwhole-program