From 4080e818bd113c6932c186c3c576d0f0d2a779a3 Mon Sep 17 00:00:00 2001 From: Jaromir Capik Date: Thu, 5 Nov 2015 17:22:29 +0100 Subject: [PATCH] Adding STAGE2 bootstrap recipe https://fedorahosted.org/fpc/ticket/529 --- STAGE2-sqlite | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 STAGE2-sqlite diff --git a/STAGE2-sqlite b/STAGE2-sqlite new file mode 100644 index 0000000..58c8740 --- /dev/null +++ b/STAGE2-sqlite @@ -0,0 +1,23 @@ +##################################################### +# sqlite is choking on sqlite_int64 definition +##################################################### +mcd $BUILDDIR/sqlite + +export CFLAGS="$RPM_OPT_FLAGS -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" + +$SRC/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 ../../rpmbuild/BUILD/sqlite-src-3070500/tool/mksqlite3h.tcl ../../rpmbuild/BUILD/sqlite-src-3070500 > sqlite3.h +cp ../../rpmbuild/BUILD/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 $J +make $J install