/ Check-in [0bab4ece]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update tool/symbols.sh to ignore symbols from sessions and rebaser and to not try to compile with ICU which is not available on all platforms.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0bab4ece6e81916d0f7255a8e553b8ca040cb8a96ab21e294212e232119f8ddc
User & Date: drh 2019-04-15 13:51:27
Context
2019-04-15
13:59
Fix a test script problem in fts5corrupt3.test. check-in: 734192d8 user: dan tags: trunk
13:51
Update tool/symbols.sh to ignore symbols from sessions and rebaser and to not try to compile with ICU which is not available on all platforms. check-in: 0bab4ece user: drh tags: trunk
2019-04-14
00:40
Remove a stray tab from the source code. check-in: 0ada58e9 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/symbols.sh.

     1      1   #!/bin/sh
     2      2   #
     3      3   # Run this script in a directory that contains a valid SQLite makefile in
     4      4   # order to verify that unintentionally exported symbols.
     5      5   #
     6      6   make sqlite3.c
     7      7   
     8         -echo '****** Exported symbols from a build including RTREE, FTS4 & ICU ******'
            8  +echo '****** Exported symbols from a build including RTREE, FTS4 & FTS5 ******'
     9      9   gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
    10     10     -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
    11     11     -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
    12     12     -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
    13         -  -DSQLITE_ENABLE_ICU -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_SESSION \
           13  +  -DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_SESSION \
           14  +  -DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY \
    14     15     sqlite3.c
    15     16   nm sqlite3.o | grep ' [TD] ' | sort -k 3
    16     17   
    17         -echo '****** Surplus symbols from a build including RTREE, FTS4 & ICU ******'
    18         -nm sqlite3.o | grep ' [TD] ' | grep -v ' .*sqlite3_'
           18  +echo '****** Surplus symbols from a build including RTREE, FTS4 & FTS5 ******'
           19  +nm sqlite3.o | grep ' [TD] ' |
           20  +   egrep -v ' .*sqlite3(session|rebaser|changeset|changegroup)?_'
    19     21   
    20     22   echo '****** Dependencies of the core. No extensions. No OS interface *******'
    21     23   gcc -c -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
    22     24     -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
    23     25     -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
    24     26     -DSQLITE_OS_OTHER -DSQLITE_THREADSAFE=0 \
    25     27     sqlite3.c