Sunday, January 30, 2011

compile sqlite3 to be a shared library


gcc -c -fPIC sqlite3.c
# gcc -shared -o libsqlite3.so -fPIC sqlite3.o 
gcc -shared -o libsqlite3.so -fPIC sqlite3.o -ldl -lpthread

No comments: