That's a good idea.

My solution was simply to break up the one long
continuation line into a bunch of single-line
assignments:

OPTS += -DSQLITE_DISABLE_LFS
OPTS += -DSQLITE_OMIT_ALTERTABLE
# OPTS += -DSQLITE_OMIT_ANALYZE
OPTS += -DSQLITE_OMIT_ATTACH
OPTS += -DSQLITE_OMIT_AUTHORIZATION
OPTS += -DSQLITE_OMIT_AUTOVACUUM
      ...


Scott Hess wrote:
> Something you can do in such cases is instead of putting a comment at
> the beginning of the line, change the define:
> 
>       -DXSQLITE_OMIT_TRIGGER                \
> 
> Yeah, so there's a chance that you've just randomly changed the define
> to enable Scary Feature X, if that's really a concern add more
> arbitrary stuff, or append _notreally or whatever makes you
> comfortable.
> 
> -scott
> 
> 
> On Mon, Apr 21, 2008 at 6:31 PM, Richard Klein
> <[EMAIL PROTECTED]> wrote:
>> D. Richard Hipp wrote:
>>> On Apr 21, 2008, at 9:03 PM, Richard Klein wrote:
>>>> I regenerated and recompiled the source files
>>>> specifying that the following features (among
>>>> others) are to be omitted:
>>>>
>>>> SQLITE_OMIT_REINDEX
>>>> SQLITE_OMIT_VIEW
>>>> SQLITE_OMIT_VIRTUALTABLE
>>> It worked OK when I tried this combination.  Are
>>> you *sure* you set these options when you ran
>>> "make target_source"?  Are you certain that you
>>> are using the correct set of source files?
>> My bad.  In the Makefile, I broke up OPTS using a
>> backslash at the end of each line.  Of course, this
>> means that 'make' will ignore everything after the
>> first '#' that it encounters.
>>
>> So my Makefile OPTS and my compilation OPTS are out
>> of sync.
>>
>> As you can see from my OPTS definition, 'make' never
>> even saw the OMITs of REINDEX, VIEW, and VIRTUALTABLE.
>>
>> It's amazing that I got as few link errors as I did!
>>
>> Sorry about that,
>> - Richard
>>
>> ------------------------------------------------------
>>
>> OPTS = -DSQLITE_DISABLE_LFS                 \
>>        -DSQLITE_OMIT_ALTERTABLE             \
>>        -DSQLITE_OMIT_ANALYZE                \
>>        -DSQLITE_OMIT_ATTACH                 \
>>        -DSQLITE_OMIT_AUTHORIZATION          \
>>        -DSQLITE_OMIT_AUTOVACUUM             \
>>        -DSQLITE_OMIT_AUTOINCREMENT          \
>>        -DSQLITE_OMIT_BETWEEN_OPTIMIZATION   \
>>        -DSQLITE_OMIT_BLOB_LITERAL           \
>>        -DSQLITE_OMIT_CAST                   \
>>        -DSQLITE_OMIT_CHECK                  \
>>        -DSQLITE_OMIT_COMPLETE               \
>>        -DSQLITE_OMIT_COMPOUND_SELECT        \
>>        -DSQLITE_OMIT_CONFLICT_CLAUSE        \
>>        -DSQLITE_OMIT_DATETIME_FUNCS         \
>>        -DSQLITE_OMIT_EXPLAIN                \
>>        -DSQLITE_OMIT_FAULTINJECTOR          \
>>        -DSQLITE_OMIT_FLAG_PRAGMAS           \
>>        -DSQLITE_OMIT_FLOATING_POINT         \
>>        -DSQLITE_OMIT_FOREIGN_KEY            \
>>        -DSQLITE_OMIT_GET_TABLE              \
>>        -DSQLITE_OMIT_GLOBALRECOVER          \
>>        -DSQLITE_OMIT_INCRBLOB               \
>> #      -DSQLITE_OMIT_INTEGRITY_CHECK        \
>>        -DSQLITE_OMIT_LIKE_OPTIMIZATION      \
>>        -DSQLITE_OMIT_LOAD_EXTENSION         \
>>        -DSQLITE_OMIT_MEMORYDB               \
>>        -DSQLITE_OMIT_PAGER_PRAGMAS          \
>> #      -DSQLITE_OMIT_PARSER                 \
>> #      -DSQLITE_OMIT_PRAGMA                 \
>>        -DSQLITE_OMIT_PROGRESS_CALLBACK      \
>>        -DSQLITE_OMIT_QUICKBALANCE           \
>>        -DSQLITE_OMIT_REINDEX                \
>>        -DSQLITE_OMIT_SCHEMA_PRAGMAS         \
>> #      -DSQLITE_OMIT_SCHEMA_VERSION_PRAGMAS \
>>        -DSQLITE_OMIT_SHARED_CACHE           \
>>        -DSQLITE_OMIT_SUBQUERY               \
>>        -DSQLITE_OMIT_TCL_VARIABLE           \
>>        -DSQLITE_OMIT_TEMPDB                 \
>>        -DSQLITE_OMIT_TRACE                  \
>> #      -DSQLITE_OMIT_TRIGGER                \
>>        -DSQLITE_OMIT_UTF16                  \
>>        -DSQLITE_OMIT_VACUUM                 \
>>        -DSQLITE_OMIT_VIEW                   \
>>        -DSQLITE_OMIT_VIRTUALTABLE           \
>>        -DSQLITE_OMIT_XFER_OPT
>>
>> _______________________________________________
>> sqlite-users mailing list
>> [email protected]
>> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>>
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to