makefile: Fix -fwhole-program warnings on OS X with newest Xcode
This commit is contained in:
parent
d2269f8bd5
commit
fb9e0ac354
1 changed files with 3 additions and 0 deletions
3
makefile
3
makefile
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue