MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« SQLite3 64-bit HOME Python 3.13 »

SQLite3 32-bit

Name: SQLite3 32-bit
Summary: An embedded, serverless transactional database library
License: SQLite3 Public Domain License
Version: 3.51.0
URL: https://sqlite.org/2025/sqlite-autoconf-3510000.tar.gz

Average Build Time: 0.4 SBU
Used Install Space: 1.8 MiB

Configuration

To configure SQLite3 32-bit for install into the build root, run the following commands:

make distclean
export OPTFLAGS="-fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables"
export CFLAGS="${OPTFLAGS} \
	-DSQLITE_ENABLE_API_ARMOR \
	-DSQLITE_ENABLE_COLUMN_METADATA \
	-DSQLITE_ENABLE_DBSTAT_VTAB \
	-DSQLITE_ENABLE_HIDDEN_COLUMNS \
	-DSQLITE_ENABLE_FTS3 \
	-DSQLITE_ENABLE_FTS4 \
	-DSQLITE_ENABLE_FTS5 \
	-DSQLITE_ENABLE_JSON1 \
	-DSQLITE_ENABLE_RBU \
	-DSQLITE_ENABLE_RTREE \
	-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \
	-DSQLITE_SOUNDEX \
	-DSQLITE_ENABLE_UNLOCK_NOTIFY \
	-DSQLITE_SECURE_DELETE \
	-DSQLITE_ENABLE_MATH_FUNCTIONS \
	-DSQLITE_STRICT_SUBTYPE=1"
CC="gcc -m32" CXX="g++ -m32"        \
./configure --host=i686-pc-linux-gnu \
            --prefix=/usr            \
            --libdir=/usr/lib        \
            --libexecdir=/usr/lib    \
            --disable-static         \
            --soname=legacy          \
            --enable-readline        \
            --enable-fts3            \
            --enable-fts4            \
            --enable-fts5            \
            --enable-update-limit    \
            --enable-rtree           \
            --enable-session

Compilation and Installation

To compile SQLite3 32-bit, run the following command:

make LDFLAGS.rpath=""

Finally, to install SQLite3 32-bit into the build tree, run the following commands:

make DESTDIR=$PWD/DESTDIR install
cp -Rv DESTDIR/usr/lib/* /usr/lib/

Contents

See the contents section of the 64-bit build of SQLite3 for details.

Navigation    
« SQLite3 64-bit HOME Python 3.13 »