diff options
author | dan miller | 2007-10-20 02:49:29 +0000 |
---|---|---|
committer | dan miller | 2007-10-20 02:49:29 +0000 |
commit | e36d23a85ebff914d74bb541558c2b6082b78edb (patch) | |
tree | 54b58fdf162e78af64055282a6035c8d2443389d /libraries/sqlite/unix/sqlite-3.5.1/mkso.sh | |
parent | * Fixed an issue whereby avatar chat distances were being calculated against ... (diff) | |
download | opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.zip opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.gz opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.bz2 opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.xz |
sqlite source (unix build) added to libraries
Diffstat (limited to 'libraries/sqlite/unix/sqlite-3.5.1/mkso.sh')
-rw-r--r-- | libraries/sqlite/unix/sqlite-3.5.1/mkso.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/mkso.sh b/libraries/sqlite/unix/sqlite-3.5.1/mkso.sh new file mode 100644 index 0000000..9050d74 --- /dev/null +++ b/libraries/sqlite/unix/sqlite-3.5.1/mkso.sh | |||
@@ -0,0 +1,29 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # This script is used to compile SQLite into a shared library on Linux. | ||
4 | # | ||
5 | # Two separate shared libraries are generated. "sqlite3.so" is the core | ||
6 | # library. "tclsqlite3.so" contains the TCL bindings and is the | ||
7 | # library that is loaded into TCL in order to run SQLite. | ||
8 | # | ||
9 | make target_source | ||
10 | cd tsrc | ||
11 | rm shell.c | ||
12 | TCLDIR=/home/drh/tcltk/846/linux/846linux | ||
13 | TCLSTUBLIB=$TCLDIR/libtclstub8.4g.a | ||
14 | OPTS='-DUSE_TCL_STUBS=1 -DNDEBUG=1 -DHAVE_DLOPEN=1' | ||
15 | for i in *.c; do | ||
16 | if test $i != 'keywordhash.c'; then | ||
17 | CMD="cc -fPIC $OPTS -O2 -I. -I$TCLDIR -c $i" | ||
18 | echo $CMD | ||
19 | $CMD | ||
20 | fi | ||
21 | done | ||
22 | echo gcc -shared *.o $TCLSTUBLIB -o tclsqlite3.so | ||
23 | gcc -shared *.o $TCLSTUBLIB -o tclsqlite3.so | ||
24 | strip tclsqlite3.so | ||
25 | rm tclsqlite.c tclsqlite.o | ||
26 | echo gcc -shared *.o -o sqlite3.so | ||
27 | gcc -shared *.o -o sqlite3.so | ||
28 | strip sqlite3.so | ||
29 | cd .. | ||