On Wed, Aug 8, 2012 at 10:37 AM, Stephan Beal <sgb...@googlemail.com> wrote:
> The current trunk builds for me as-is with the GNUmakefile.linux:
>
> make compiler=gcc
> make compiler=clang
> make compiler=tcc
>
> all work fine here (and tcc is FAST!)

That works, though it fails with tcc:

tcc -g -Wall -o mkkeywordhash  -DNDEBUG=1 -DHAVE_FDATASYNC=1
-DLSM_MUTEX_NONE -DSQLITE4_DEBUG=1 -DLSM_DEBUG=1 -DHAVE_GMTIME_R
-DHAVE_LOCALTIME_R -DHAVE_MA
LLOC_USABLE_SIZE -DHAVE_USLEEP -DSQLITE4_MEMDEBUG=1
-DSQLITE4_OMIT_ANALYZE -DSQLITE4_OMIT_AUTOMATIC_INDEX
-DSQLITE4_OMIT_BTREECOUNT -DSQLITE4_OMIT_VIRTUAL
TABLE=1 -DSQLITE4_OMIT_XFER_OPT -DSQLITE4_THREADSAFE=0 ./tool/mkkeywordhash.c
tcc: undefined symbol '__libc_csu_fini'
tcc: undefined symbol '__libc_csu_init'
tcc: undefined symbol '__libc_start_main'
tcc: undefined symbol 'strcmp'
tcc: undefined symbol 'memcpy'
tcc: undefined symbol 'strlen'
tcc: undefined symbol 'strcpy'
tcc: undefined symbol 'qsort'
tcc: undefined symbol 'memcmp'
tcc: undefined symbol 'printf'
make: *** [keywordhash.h] Error 1

I had to add -L/usr/lib/i386-linux-gnu -lc to get it to build with
tcc.  The build rules for mkkeywordhash and lemon needed those
additions, as did the THREADLIB macro.  One would think that a
compiler would know where to find -lc...

But OK, it's built with gcc, clang and tcc.  Thanks!

Nico
--
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to