build file. attempt to fix boost errors.

This commit is contained in:
Christopher Jeffrey 2014-08-20 10:34:17 -07:00
parent 6498426268
commit af3351a631
1 changed files with 20 additions and 5 deletions

View File

@ -5,9 +5,9 @@
'<!(node -e "require(\'nan\')")',
'<!(echo "$HOME")/bitcoin/src',
'<!(echo "$HOME")/bitcoin/src/leveldb/include',
'/usr/include/boost',
'/usr/include/boost'
# include our own boost
#'./deps'
# './deps'
],
'sources': [
'./src/bitcoindjs.cc'
@ -21,11 +21,26 @@
'-frtti'
],
'libraries': [
'-lutil',
# bitcoind:
# arch is using bitcoin-daemon 0.9.2.1
# - should be the correct boost headers
# building:
# $ git clean -df
# $ git checkout v0.9.2.1
# $ ./autogen.sh
# $ ./configure --with-incompatible-bdb
# $ time make
# $ cd ~/work/node_modules/bitcoind.js
# $ PYTHON=/usr/bin/python2.7 make gyp
# ^ move this to readme
# NOTE: rename this to bitcoind.o so we can statically link to it
'-L/home/user/bitcoin/src/bitcoind',
# statically link leveldb
# '-L<!(echo "$HOME")/bitcoin/src/bitcoind',
'-L/usr/bin/bitcoind',
# '-L/usr/lib/bitcoind.o',
# '-L<!(echo "$HOME")/bitcoin/src/bitcoind.o',
# statically link leveldb:
'-L/home/user/bitcoin/src/leveldb/libleveldb.a',
# standard libs:
'-L/usr/lib',
'-L/usr/local/lib'
]