Re: [sqlite] Cross-compiling SQLite for Blackfin+uClinux?

2010-12-02 Thread Gilles Ganault
At 22:38 02/12/2010, Mike Frysinger wrote: >that doesnt really make sense. just build sqlite in the dist and >look at how configure is run. If I got it right, the SQLite package that lives in the uClinux-dist uses the GNU build system

Re: [sqlite] Cross-compiling SQLite for Blackfin+uClinux?

2010-12-02 Thread Gilles Ganault
On Thu, 2 Dec 2010 08:06:13 -0600, "Black, Michael (IS)" wrote: >You're linking your two .o into the shared library instead of sqlite3.o > >src/$(LIBNAME): $(OBJS) >$(CC) $(CFLAGS) $(LIB_OPTION) $(DRIVER_LIBS) -o $@ sqlite3.o Thanks a bunch,

Re: [sqlite] Cross-compiling SQLite for Blackfin+uClinux?

2010-12-02 Thread Black, Michael (IS)
Analytics Directorate Northrop Grumman Information Systems From: sqlite-users-boun...@sqlite.org on behalf of Gilles Ganault Sent: Thu 12/2/2010 7:24 AM To: sqlite-users@sqlite.org Subject: EXTERNAL:Re: [sqlite] Cross-compiling SQLite for Blackfin+uClinux? On Wed

Re: [sqlite] Cross-compiling SQLite for Blackfin+uClinux?

2010-12-02 Thread Gilles Ganault
At 17:47 01/12/2010, Mike Frysinger wrote: >why dont you consult the Blackfin uclinux-dist to see how it's doing it ? I did, but it's the same code as from www.sqlite.org so doesn't contain infos on what parameters to pass "configure" to compile for the Blackfin. After cd'ing to

Re: [sqlite] Cross-compiling SQLite for Blackfin+uClinux?

2010-12-02 Thread Gilles Ganault
On Wed, 1 Dec 2010 11:10:54 -0600, "Black, Michael (IS)" wrote: >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... Thanks

Re: [sqlite] Cross-compiling SQLite for Blackfin+uClinux?

2010-12-01 Thread Black, Michael (IS)
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.g

Re: [sqlite] Cross-compiling SQLite for Blackfin+uClinux?

2010-12-01 Thread Gilles Ganault
On Wed, 01 Dec 2010 17:28:29 +0100, Gilles Ganault 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:

[sqlite] Cross-compiling SQLite for Blackfin+uClinux?

2010-12-01 Thread Gilles Ganault
Hello I need to cross-compile SQLite on an x86 Ubuntu host for a device using the Blackfin CPU and the uClinux distribution. I downloaded sqlite-amalgamation-3.7.3.tar.gz, since it's "the recommended source distribution for all Unix and Unix-like platforms". Then, I read the README and