From aeca08d112bc70ad7930eb246ff792b254137e35 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sun, 3 Jun 2012 15:33:21 +0000 Subject: [PATCH] Allow builder to configure CXXFLAGS --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 35bfef8..b73aa73 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,12 @@ +CXXFLAGS = -O2 -ggdb3 -march=nocona + 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 %.o: %.cpp bitcoin.h netbase.h protocol.h db.h serialize.h uint256.h util.h - g++ -DUSE_IPV6 -pthread -O2 -ggdb3 -march=nocona -Wno-invalid-offsetof -c -o $@ $< + g++ -DUSE_IPV6 -pthread $(CXXFLAGS) -Wno-invalid-offsetof -c -o $@ $< dns.o: dns.c - gcc -pthread -std=c99 -O2 -ggdb3 -march=nocona dns.c -c -o dns.o + gcc -pthread -std=c99 $(CXXFLAGS) dns.c -c -o dns.o %.o: %.cpp