9b1334b7d3
The -DHAVE_NANOSLEEP=0 compile-time option can be used to build on systems (if any still exist) where this is not the case. FossilOrigin-Name: 779d5dc8797ea246d0397f7e94b1be716b0baa735e8d9f5a6fc4cffd887a7420
22 lines
665 B
Bash
22 lines
665 B
Bash
#!/bin/sh
|
|
#
|
|
# This script demonstrates how to do a full-featured build of the sqlite3
|
|
# command-line shell on Linux.
|
|
#
|
|
# SQLite source code should be in a sibling directory named "sqlite". For
|
|
# example, put SQLite sources in ~/sqlite/sqlite and run this script from
|
|
# ~/sqlite/bld. There should be an appropriate Makefile in the current
|
|
# directory as well.
|
|
#
|
|
make sqlite3.c
|
|
gcc -o sqlite3 -g -Os -I. \
|
|
-DSQLITE_THREADSAFE=0 \
|
|
-DSQLITE_ENABLE_VFSTRACE \
|
|
-DSQLITE_ENABLE_STAT3 \
|
|
-DSQLITE_ENABLE_FTS4 \
|
|
-DSQLITE_ENABLE_RTREE \
|
|
-DHAVE_READLINE \
|
|
../sqlite/src/shell.c \
|
|
../sqlite/src/test_vfstrace.c \
|
|
sqlite3.c -ldl -lreadline -lncurses
|