On Sunday 07 June 2009 00:15:21 Jay A. Kreibich wrote:
> > Howdy, I'd like to end up with a shared NON-threaded NON-TCL binary
> > but also with a libsqlite3.a static lib. Could anyone suggest how I
> > could alter this Makefile to support these requirements please?
>
> Assuming you're using the amalgamation, the Makefile is for use
> with "configure". It isn't designed to be hand-edited.
Thank you for a clear and thorough response.
I should have mentioned I'm building (unofficial) Archlinux binary
packages from CVS. This used to work (at least it did for the
downloadable package)...
cd $srcdir/$pkgname
export LTLINK_EXTRAS="-ldl"
export CFLAGS="$CFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1"
./configure \
--prefix=/usr \
--disable-tcl \
--disable-threadsafe \
--enable-static \
--enable-load-extension || return 1
make || return 1
make DESTDIR=$pkgdir install || return 1
It stopped working so I RTFM and noted that configure from CVS is
not guaranteed to always work so I was going to provide my own
modified copy of Makefile.linux-gcc.
> If you want to compile things by hand, just pass the -DTHREADSAFE=0
> on the command line when you compile sqlite3.c.
>
> $ cc -DTHREADSAFE=0 -c sqlite3.c # build sqlite3.o
> $ cc -o sqlite3 sqlite3.o shell.c # build sqlite3 binary
> $ ar cru libsqlite3.a sqlite3.o # build libsqlite3.a
Is there a previous step need for a CVS checkout?
I don't have a sqlite3.c in the src/ dir (I presume).
--markc
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users