I don't think you need to do the LDFLAGS thing... gcc -O2 -fpic -shared -Wl,-soname,sqlite3.so -o sqlite3.so sqlite3.c Works fine for me. Though I'm not using the Blackfin compiler... Michael D. Black Senior Scientist Advanced Analytics Directorate Northrop Grumman Information Systems
________________________________ From: sqlite-users-boun...@sqlite.org on behalf of Gilles Ganault Sent: Wed 12/1/2010 10:57 AM To: sqlite-users@sqlite.org Subject: EXTERNAL:Re: [sqlite] Cross-compiling SQLite for Blackfin+uClinux? On Wed, 01 Dec 2010 17:28:29 +0100, Gilles Ganault <gilles.gana...@free.fr> wrote: >Any help appreciated on cross-compiling SQLite using the Autoconf >tool. Without necessarily knowing what I'm doing, the following does compile without errors: CC="/opt/uClinux/bfin-linux-uclibc/bfin-linux-uclibc/bin/gcc" CFLAGS="-pedantic -Wall -O2 -fpic" LDFLAGS="-shared -fpic -Wl,-soname,sqlite3.so" ./configure --host=bfin --disable-readline However, while .libs/libsqlite3.a (508.402 bytes) and ./sqlite3 (603.161 bytes) look nice, ./sqlite3.so is only 9308 bytes. There's something fishy :-/ _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users