Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f
[chromium-blink-merge.git] / third_party / sqlite / sqlite-src-3080704 / tool / symbols.sh
blobbefffce5c4c43403f7c6cd99aa25cf72fe26fe0d
1 #!/bin/sh
3 # Run this script in a directory that contains a valid SQLite makefile in
4 # order to verify that unintentionally exported symbols.
6 make sqlite3.c
8 echo '****** Exported symbols from a build including RTREE, FTS4 & ICU ******'
9 gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
10 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
11 -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
12 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
13 -DSQLITE_ENABLE_ICU \
14 sqlite3.c
15 nm sqlite3.o | grep ' [TD] ' | sort -k 3
17 echo '****** Surplus symbols from a build including RTREE, FTS4 & ICU ******'
18 nm sqlite3.o | grep ' [TD] ' | grep -v ' .*sqlite3_'
20 echo '****** Dependencies of the core. No extensions. No OS interface *******'
21 gcc -c -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
22 -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
23 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
24 -DSQLITE_OS_OTHER -DSQLITE_THREADSAFE=0 \
25 sqlite3.c
26 nm sqlite3.o | grep ' U ' | sort -k 3
28 echo '****** Dependencies including RTREE & FTS4 *******'
29 gcc -c -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_RTREE \
30 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_STAT3 \
31 -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_ENABLE_UNLOCK_NOTIFY \
32 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_ATOMIC_WRITE \
33 sqlite3.c
34 nm sqlite3.o | grep ' U ' | sort -k 3