projects
/
platform
/
upstream
/
ejdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df531ef
)
#1
author
adam
<anton@adamansky.com>
Mon, 29 Oct 2012 11:44:43 +0000
(18:44 +0700)
committer
adam
<anton@adamansky.com>
Mon, 29 Oct 2012 11:44:43 +0000
(18:44 +0700)
node/binding.gyp
patch
|
blob
|
history
node/ejdb_native.cc
patch
|
blob
|
history
diff --git
a/node/binding.gyp
b/node/binding.gyp
index
b238a88
..
75cc305
100644
(file)
--- a/
node/binding.gyp
+++ b/
node/binding.gyp
@@
-4,7
+4,17
@@
'target_name' : 'ejdb_native',
'sources' : ['ejdb_native.cc'],
'include_dirs': ['../tcejdb'],
- 'libraries' : ['-L../tcejdb']
+ 'libraries' : [
+ '-L../../tcejdb',
+ '-Wl,-Bstatic -ltcejdb',
+ '-Wl,-Bdynamic',
+ '-lbz2 -lz -lrt -lpthread -lm -lc'
+ ],
+ 'cflags': [
+ '-fPIC',
+ '-D_FILE_OFFSET_BITS=64',
+ '-D_LARGEFILE_SOURCE'
+ ]
}
]
}
\ No newline at end of file
diff --git
a/node/ejdb_native.cc
b/node/ejdb_native.cc
index
bc5fe2f
..
75bd8b8
100644
(file)
--- a/
node/ejdb_native.cc
+++ b/
node/ejdb_native.cc
@@
-10,6
+10,9
@@
using namespace v8;
namespace ejdb {
void Init(v8::Handle<v8::Object> target) {
+ EJDB *jb = ejdbnew();
+ ejdbdel(jb);
+
#ifdef __unix
setlocale(LC_ALL, "en_US.UTF-8"); //todo review it
#endif