mirror of
https://github.com/sqlite/sqlite.git
synced 2024-11-25 08:59:33 +01:00
660107f35e
try to compile with ICU which is not available on all platforms. FossilOrigin-Name: 0bab4ece6e81916d0f7255a8e553b8ca040cb8a96ab21e294212e232119f8ddc
37 lines
1.5 KiB
Bash
37 lines
1.5 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Run this script in a directory that contains a valid SQLite makefile in
|
|
# order to verify that unintentionally exported symbols.
|
|
#
|
|
make sqlite3.c
|
|
|
|
echo '****** Exported symbols from a build including RTREE, FTS4 & FTS5 ******'
|
|
gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
|
|
-DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
|
|
-DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
|
|
-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
|
|
-DSQLITE_ENABLE_PREUPDATE_HOOK -DSQLITE_ENABLE_SESSION \
|
|
-DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_GEOPOLY \
|
|
sqlite3.c
|
|
nm sqlite3.o | grep ' [TD] ' | sort -k 3
|
|
|
|
echo '****** Surplus symbols from a build including RTREE, FTS4 & FTS5 ******'
|
|
nm sqlite3.o | grep ' [TD] ' |
|
|
egrep -v ' .*sqlite3(session|rebaser|changeset|changegroup)?_'
|
|
|
|
echo '****** Dependencies of the core. No extensions. No OS interface *******'
|
|
gcc -c -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
|
|
-DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
|
|
-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
|
|
-DSQLITE_OS_OTHER -DSQLITE_THREADSAFE=0 \
|
|
sqlite3.c
|
|
nm sqlite3.o | grep ' U ' | sort -k 3
|
|
|
|
echo '****** Dependencies including RTREE & FTS4 *******'
|
|
gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
|
|
-DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
|
|
-DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
|
|
-DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
|
|
sqlite3.c
|
|
nm sqlite3.o | grep ' U ' | sort -k 3
|