Fix testing setup
authorVegard Nossum <vegard.nossum@gmail.com>
Sun, 31 Jul 2011 18:00:38 +0000 (20:00 +0200)
committerLuke Dashjr <luke-jr+git@utopios.org>
Wed, 4 Apr 2012 14:00:20 +0000 (10:00 -0400)
There were some problems with the existing testing setup:

 - Makefile rules for test-file compilation used CFLAGS instead of
   CXXFLAGS in makefile.unix

src/makefile.unix

index a2cbc7c..6629067 100644 (file)
@@ -133,7 +133,7 @@ bitcoind: $(OBJS:obj/%=obj/nogui/%)
        $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)
 
 obj/test/test_bitcoin.o: $(wildcard test/*.cpp) $(HEADERS)
-       $(CXX) -c $(CFLAGS) -o $@ test/test_bitcoin.cpp
+       $(CXX) -c $(CXXFLAGS) -o $@ test/test_bitcoin.cpp
 
 test_bitcoin: obj/test/test_bitcoin.o $(filter-out obj/nogui/init.o,$(OBJS:obj/%=obj/nogui/%))
        $(CXX) $(CXXFLAGS) -o $@ $(LIBPATHS) $^ -Wl,-Bstatic -lboost_unit_test_framework $(LIBS)