From f55193afa6da7ce2aa4dfab1b4e32d8aee02d952 Mon Sep 17 00:00:00 2001 From: Paul Koning Date: Tue, 1 Nov 2022 10:19:39 -0400 Subject: [PATCH] makefile: don't use -fwhole-program The GCC documentation explicitly says not to use that option when -flto is used, and since that is the only place where the makefile was using it, remove it to conform to the documented rules. --- makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/makefile b/makefile index bcbbae6d..6f5caf95 100644 --- a/makefile +++ b/makefile @@ -1358,9 +1358,6 @@ else ifneq (,$(LTO)) ifneq (,$(findstring -flto,$(GCC_OPTIMIZERS))) CFLAGS_O += -flto - ifneq (,$(and $(or $(findstring gcc,$(COMPILER_NAME)),$(findstring GCC,$(COMPILER_NAME))),$(findstring -fwhole-program,$(GCC_OPTIMIZERS)))) - CFLAGS_O += -fwhole-program - endif LTO_FEATURE = , with Link Time Optimization, endif endif