From: Marco Costalba Date: Mon, 23 Jan 2012 19:47:20 +0000 (+0100) Subject: Revert "Fix link time optimization gcc option" X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=830ff985dbea8102796d60af3109936791fc8b28;ds=sidebyside 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 --- 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