From c92918f3797d78d853a9f9639f5a6a36639c0eca Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 12 Aug 2012 01:13:41 +0200 Subject: [PATCH] Use -flto by default --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b73aa73..2f8bde1 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ -CXXFLAGS = -O2 -ggdb3 -march=nocona +CXXFLAGS = -O3 -g0 -march=native -flto +LDFLAGS = $(CXXFLAGS) dnsseed: dns.o bitcoin.o netbase.o protocol.o db.o main.o util.o - g++ -pthread -o dnsseed dns.o bitcoin.o netbase.o protocol.o db.o main.o util.o -lcrypto + g++ -pthread $(LDFLAGS) -o dnsseed dns.o bitcoin.o netbase.o protocol.o db.o main.o util.o -lcrypto %.o: %.cpp bitcoin.h netbase.h protocol.h db.h serialize.h uint256.h util.h g++ -DUSE_IPV6 -pthread $(CXXFLAGS) -Wno-invalid-offsetof -c -o $@ $<