Source

woocode / sa-auto / src / bdb.sh

Full commit
#!/bin/sh

. ./set_app_env.sh;

L_CFLAGS=""
L_CPPFLAGS=""
L_LDFLAGS=""

CFLAGS=" $G_CFLAGS $L_CFLAGS";export CFLAGS;
CPPFLAGS=" $G_CPPFLAGS $L_CPPFLAGS";export CPPFLAGS;
LDFLAGS=" $G_LDFLAGS $L_LDFLAGS";export LDFLAGS;

rm -rf $BDB
rm -rf $APP_LIB/bdb

tar zxvf $BDB.tar.gz

cd $BDB/build_unix/

../dist/configure --prefix=$APP_LIB/$BDB           \
                  --disable-largefile              \
                  --disable-cryptography           \
                  --disable-mutexsupport           \
                  --disable-queue                  \
                  --disable-replication            \
                  --disable-verify                 \
                  --enable-compat185=yes           \
                  --enable-cxx=no                  \
                  --enable-debug=no                \
                  --enable-debug_rop=no            \
                  --enable-debug_wop=no            \
                  --enable-diagnostic=no           \
                  --enable-dump185=no              \
                  --enable-java=no                 \
                  --enable-mingw=no                \
                  --enable-o_direct=no             \
                  --enable-posixmutexes=no         \
                  --enable-pthread_api=no          \
                  --enable-rpc=no                  \
                  --enable-smallbuild=no           \
                  --enable-tcl=no                  \
                  --enable-test=no                 \
                  --enable-uimutexes=no            \
                  --enable-umrw=yes                \
                  --enable-shared=no               \
                  --enable-static=yes


make $MAKEOPT &&

make install

ln -s $APP_LIB/$BDB $APP_LIB/bdb