#1
authoradam <anton@adamansky.com>
Mon, 29 Oct 2012 11:44:43 +0000 (18:44 +0700)
committeradam <anton@adamansky.com>
Mon, 29 Oct 2012 11:44:43 +0000 (18:44 +0700)
node/binding.gyp
node/ejdb_native.cc

index b238a88..75cc305 100644 (file)
@@ -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
index bc5fe2f..75bd8b8 100644 (file)
@@ -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