From: Auguste Pop Date: Wed, 4 Jan 2012 10:01:12 +0000 (+0800) Subject: Fix link time optimization gcc option X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=28bf56e7253336c7e62c9180ff5c591d168352f4;ds=sidebyside Fix link time optimization gcc option The previous line, LDFLAGS += $(CXXFLAGS), does not make sense, and breaks profile-build, thus changing it into: LDFLAGS += -flto. Signed-off-by: Marco Costalba --- diff --git a/src/Makefile b/src/Makefile index b4ecee32..623c20bb 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 += $(CXXFLAGS) + LDFLAGS += -flto endif endif