Hi, I've added the following lines in the Makefile.linux-gcc file:
OPTS += -DSQLITE_OMIT_ALTERTABLE OPTS += -DSQLITE_OMIT_AUTHORIZATION OPTS += -DSQLITE_OMIT_AUTOVACUUM OPTS += -DSQLITE_OMIT_AUTOINCREMENT OPTS += -DSQLITE_OMIT_BLOB_LITERAL OPTS += -DSQLITE_OMIT_COMPLETE OPTS += -DSQLITE_OMIT_COMPOUND_SELECT OPTS += -DSQLITE_OMIT_CONFLICT_CLAUSE OPTS += -DSQLITE_OMIT_EXPLAIN OPTS += -DSQLITE_OMIT_FLOATING_POINT OPTS += -DSQLITE_OMIT_FOREIGN_KEY OPTS += -DSQLITE_OMIT_INTEGRITY_CHECK OPTS += -DSQLITE_OMIT_PAGER_PRAGMAS OPTS += -DSQLITE_OMIT_PRAGMA OPTS += -DSQLITE_OMIT_REINDEX OPTS += -DSQLITE_OMIT_SCHEMA_PRAGMAS OPTS += -DSQLITE_OMIT_SCHEMA_VERSION_PRAGMAS OPTS += -DSQLITE_OMIT_SUBQUERY OPTS += -DSQLITE_OMIT_TCL_VARIABLE OPTS += -DSQLITE_OMIT_TRIGGER OPTS += -DSQLITE_OMIT_DATETIME_FUNCS but the result is still the same. The footprint has not been changed. And during make, I noticed that these new-added -DSQLITE_OMIT_XX did not appeared in the command lines. Why? Is there any other file I need to update? Thanks in advance. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <sqlite-users@sqlite.org> Sent: Friday, August 25, 2006 6:35 PM Subject: Re: [sqlite] How to edit Makefile.linux-gcc to define those SQLITE_OMIT_*? "Sarah" <[EMAIL PROTECTED]> wrote: > Hi,all > > In order to define those SQLITE_OMIT_TRIGGER,SQLITE_OMIT_ALTERTABLE..., I > have to rebuild parse.c > from parse.y. So I took the following steps to do it under linux(Fedora 2). > > But by comparing the generated static library, I find that no difference has > been made > and the footprint is still the same. > > I'm not familiar with linux. So I guess the way I edit Makefile.linux-gcc is > wrong. > My steps are as follows: > 1.Edit Makefile.linux-gcc,add the following sentences directly into it: > -DSQLITE_OMIT_TRIGGER > -DSQLITE_OMIT_ALTERTABLE > -DSQLITE_OMIT_VIEW > -DSQLITE_OMIT_AUTHORIZATION Should be: OPTS += -DSQLITE_OMIT_TRIGGER and so forth. > ... > 2.run ..>../configure > 3.run ..>make > 4.generate lib, run ..>ar cr libsqlite.a *.o > 5.compare the footprint of generated sqlite.a with the one without defining > -DSQLITE_OMIT_* in Makefile.linux-gcc. > totally the same. > > Any help will be appreciated.. > > Sarah ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------