From 5e701a7deb86b9c9ee81f2134b91e839f90b09b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Thu, 1 Mar 2012 14:22:11 +0100 Subject: [PATCH] Enable gcc's link time optimizations. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 23cd4f6..3effd67 100644 --- a/Makefile +++ b/Makefile @@ -14,9 +14,9 @@ else endif ifeq ($(DEBUG), true) - OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -fno-PIC -static + OPT_FLAGS=-O0 -g $(POPCOUNT_FLAG) -static else - OPT_FLAGS=-O4 $(POPCOUNT_FLAG) -fno-PIC -static + OPT_FLAGS=-O4 $(POPCOUNT_FLAG) -static -flto endif @@ -24,7 +24,7 @@ endif INC_FLAGS=-I. CFLAGS= $(INC_FLAGS) $(OPT_FLAGS) CXXFLAGS= $(INC_FLAGS) $(OPT_FLAGS) -CC=gcc +CC=g++ OBJECTS_BP=bp.o bp-utils.o bp-darray.o bp-core.o -- 2.17.1