From 28bf56e7253336c7e62c9180ff5c591d168352f4 Mon Sep 17 00:00:00 2001 From: Auguste Pop Date: Wed, 4 Jan 2012 18:01:12 +0800 Subject: [PATCH] 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 --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2