From 830ff985dbea8102796d60af3109936791fc8b28 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Mon, 23 Jan 2012 20:47:20 +0100 Subject: [PATCH] Revert "Fix link time optimization gcc option" It seems we need to pass the full optimization flags to the linker otherwise we end up in a slow compile: http://lists.debian.org/debian-devel/2011/06/msg00181.html Regression reported by Benigno Hernandez. No functional change. Signed-off-by: Marco Costalba --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 623c20bb..b4ecee32 100644 --- a/src/Makefile +++ b/src/Makefile @@ -319,7 +319,7 @@ ifeq ($(comp),gcc) GCC_MINOR := `$(CXX) -dumpversion | cut -f2 -d.` ifeq (1,$(shell expr \( $(GCC_MAJOR) \> 4 \) \| \( $(GCC_MAJOR) \= 4 \& $(GCC_MINOR) \>= 5 \))) CXXFLAGS += -flto - LDFLAGS += -flto + LDFLAGS += $(CXXFLAGS) endif endif -- 2.39.2