Lx4U-book/docs/build-system/sqlite.md
2021-05-18 10:02:52 +03:00

1.7 KiB

Настройка

./configure --prefix=/usr     \
            --disable-static  \
            --enable-fts5     \
            CPPFLAGS="-DSQLITE_ENABLE_FTS3=1  \
            -DSQLITE_ENABLE_FTS4=1            \
            -DSQLITE_ENABLE_COLUMN_METADATA=1 \
            -DSQLITE_ENABLE_UNLOCK_NOTIFY=1   \
            -DSQLITE_ENABLE_DBSTAT_VTAB=1     \
            -DSQLITE_SECURE_DELETE=1          \
            -DSQLITE_ENABLE_FTS3_TOKENIZER=1" 

Сборка

make

Установка

make install

Для multilib

Очистка

make distclean

Настройка

CC="gcc -m32" CXX="g++ -m32" \
CPPFLAGS="-DSQLITE_ENABLE_FTS3=1  \
          -DSQLITE_ENABLE_FTS4=1            \
          -DSQLITE_ENABLE_COLUMN_METADATA=1 \
          -DSQLITE_ENABLE_UNLOCK_NOTIFY=1   \
          -DSQLITE_ENABLE_DBSTAT_VTAB=1     \
          -DSQLITE_SECURE_DELETE=1          \
          -DSQLITE_ENABLE_FTS3_TOKENIZER=1" \
./configure --prefix=/usr     \
            --disable-static  \
            --enable-fts5              

Сборка

make

Установка

make DESTDIR=$PWD/DESTDIR install
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
rm -rf DESTDIR

Установленные файлы

Программы: sqlite3

Библиотеки: libsqlite3.so