From fb9e0ac3544dd2e517f1f1126de1d3f4ec0296ce Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 25 Mar 2016 17:26:30 -0700 Subject: [PATCH] makefile: Fix -fwhole-program warnings on OS X with newest Xcode --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index 748e2361..f9650787 100644 --- a/makefile +++ b/makefile @@ -809,6 +809,9 @@ ifneq ($(DEBUG),) else ifneq (clang,$(findstring clang,$(COMPILER_NAME))) CFLAGS_O = -O2 + ifeq (Darwin,$(OSTYPE)) + NO_LTO = 1 + endif else ifeq (Darwin,$(OSTYPE)) CFLAGS_O += -O4 -fno-strict-overflow -flto -fwhole-program