diff options
author | Eric Hameleers <alien@slackware.com> | 2013-03-22 16:47:17 -0700 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2013-03-22 16:47:17 -0700 |
commit | 69dd99f961988fa15da8d7f0d63b62f3385419c3 (patch) | |
tree | d57eb3e85e1d08e7815787de26946ee42c398b66 /recipe.d/0013-sqlite | |
download | alienarm-69dd99f961988fa15da8d7f0d63b62f3385419c3.tar.gz alienarm-69dd99f961988fa15da8d7f0d63b62f3385419c3.tar.xz |
Initial commit of a Slackware cross-arch bootstrap framework.
Diffstat (limited to 'recipe.d/0013-sqlite')
-rw-r--r-- | recipe.d/0013-sqlite | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipe.d/0013-sqlite b/recipe.d/0013-sqlite new file mode 100644 index 0000000..155630a --- /dev/null +++ b/recipe.d/0013-sqlite @@ -0,0 +1,22 @@ + ##################################################### + # sqlite is choking on sqlite_int64 definition + ##################################################### + mcd $BUILDDIR/sqlite + export CFLAGS="$SLKCFLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -Wall -fno-strict-aliasing" + $SLACKSOURCE/sqlite/sqlite-*/configure --disable-tcl --enable-threadsafe --enable-threads-override-locks --enable-load-extension $TCONFIGARGS + # the compile would fail here, so on a host you need to run + # tclsh $SLACKSOURCE/sqlite/sqlite-src-*/tool/mksqlite3h.tcl $SLACKSOURCE/sqlite/sqlite-src-* > sqlite3.h + cp $SLACKSOURCE/sqlite/sqlite-src-*/sqlite3.h.stage1 sqlite3.h + + # Also possibly add -ldl to TLIB in the Makefile + if egrep '^TLIBS.*ldl' Makefile > /dev/null + then + true + else + sed 's/^\(TLIBS = .*\)/\1 -ldl/' Makefile > Makefile.stage2 + mv Makefile.stage2 Makefile + fi + + make $NUMJOBS + make $NUMJOBS install + |