Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
c41cbf0f
Commit
c41cbf0f
authored
Feb 02, 2011
by
Orlando Vazquez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use -fPIC when we compile the object files or else we get code relocation errors
parent
6d227a91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
wscript
wscript
+9
-6
No files found.
wscript
View file @
c41cbf0f
...
...
@@ -20,22 +20,25 @@ def configure(conf):
conf
.
env
.
append_value
(
"LIB_MPOOL"
,
"mpool"
)
conf
.
env
.
append_value
(
"CPPPATH_MPOOL"
,
abspath
(
"./deps/mpool-2.1.0/"
))
conf
.
env
.
append_value
(
'LIBPATH_SQLITE'
,
abspath
(
'build/default/deps/'
))
conf
.
env
.
append_value
(
'
LIB_SQLITE'
,
'sqlite3
'
)
conf
.
env
.
append_value
(
'LIBPATH_SQLITE'
,
abspath
(
'build/default/deps/
sqlite/
'
))
conf
.
env
.
append_value
(
'
STATICLIB_SQLITE'
,
'sqlite3-bundled
'
)
conf
.
env
.
append_value
(
'CPATH_SQLITE'
,
abspath
(
'./deps/sqlite/'
))
def
build
(
bld
):
system
(
"cd deps/mpool-2.1.0/; make"
);
sqlite
=
bld
.
new_task_gen
(
'cc'
,
'shlib'
)
sqlite
.
ccflags
=
[
"-g"
,
"-D_FILE_OFFSET_BITS=64"
,
"-D_LARGEFILE_SOURCE"
,
"-Wall"
]
sqlite
=
bld
.
new_task_gen
(
'cc'
,
'staticlib'
)
sqlite
.
ccflags
=
[
"-g"
,
"-fPIC"
,
"-D_FILE_OFFSET_BITS=64"
,
"-D_LARGEFILE_SOURCE"
,
"-Wall"
]
sqlite
.
source
=
"deps/sqlite/sqlite3.c"
sqlite
.
target
=
"deps/sqlite3"
sqlite
.
target
=
"deps/sqlite/sqlite3-bundled"
sqlite
.
name
=
"sqlite3"
obj
=
bld
.
new_task_gen
(
"cxx"
,
"shlib"
,
"node_addon"
)
obj
.
cxxflags
=
[
"-g"
,
"-D_FILE_OFFSET_BITS=64"
,
"-D_LARGEFILE_SOURCE"
,
"-Wall"
]
obj
.
target
=
"sqlite3_bindings"
obj
.
source
=
"src/sqlite3_bindings.cc src/database.cc src/statement.cc"
obj
.
uselib
=
"SQLITE MPOOL"
obj
.
uselib
=
"MPOOL"
obj
.
uselib_local
=
"sqlite3"
t
=
'sqlite3_bindings.node'
def
shutdown
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment