Skip to content

Commit a75560d

Browse files
--author=Satoshi Nakamotogavinandresen
authored andcommitted
reverted makefile.unix wx-config -- version 0.3.6
1 parent ec82517 commit a75560d

File tree

6 files changed

+718
-655
lines changed

6 files changed

+718
-655
lines changed

bignum.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ class CBigNum : public BIGNUM
401401

402402
CBigNum& operator>>=(unsigned int shift)
403403
{
404-
// Note: BN_rshift segfaults on 64-bit ubuntu 9.10 if 2^shift is greater than the number
404+
// Note: BN_rshift segfaults on 64-bit ubuntu 9.10 if 2^shift is greater than the number,
405+
// tested OK on 64-bit ubuntu 10.4
405406
if (!BN_rshift(this, this, shift))
406407
throw bignum_error("CBigNum:operator>>= : BN_rshift failed");
407408
return *this;

makefile.unix

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,21 @@
33
# file license.txt or http://www.opensource.org/licenses/mit-license.php.
44

55

6-
WXLIBS=$(shell wx-config --debug=yes --libs --static)
7-
WXFLAGS=$(shell wx-config --debug=yes --cppflags)
6+
INCLUDEPATHS= \
7+
-I"/usr/include" \
8+
-I"/usr/local/include/wx-2.9" \
9+
-I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9"
810

911
LIBPATHS= \
12+
-L"/usr/lib" \
1013
-L"/usr/local/lib"
1114

15+
WXLIBS= \
16+
-Wl,-Bstatic \
17+
-l wx_gtk2ud-2.9 \
18+
-Wl,-Bdynamic \
19+
-l gtk-x11-2.0 -l SM
20+
1221
LIBS= \
1322
-Wl,-Bstatic \
1423
-l boost_system \
@@ -22,7 +31,7 @@ LIBS= \
2231

2332
DEFS=-D__WXGTK__ -DNOPCH
2433
DEBUGFLAGS=-g -D__WXDEBUG__
25-
CFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS)
34+
CFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
2635
HEADERS=headers.h strlcpy.h serialize.h uint256.h util.h key.h bignum.h base58.h \
2736
script.h db.h net.h irc.h main.h rpc.h uibase.h ui.h noui.h init.h
2837

@@ -43,10 +52,10 @@ all: bitcoin
4352

4453

4554
headers.h.gch: headers.h $(HEADERS)
46-
g++ -c $(CFLAGS) $(WXFLAGS) -DGUI -o $@ $<
55+
g++ -c $(CFLAGS) -DGUI -o $@ $<
4756

4857
obj/%.o: %.cpp $(HEADERS) headers.h.gch
49-
g++ -c $(CFLAGS) $(WXFLAGS) -DGUI -o $@ $<
58+
g++ -c $(CFLAGS) -DGUI -o $@ $<
5059

5160
cryptopp/obj/%.o: cryptopp/%.cpp
5261
g++ -c $(CFLAGS) -O3 -DCRYPTOPP_DISABLE_SSE2 -o $@ $<

0 commit comments

Comments
 (0)