sqlite: fix cross build.
This commit is contained in:
parent
55dc336df5
commit
b724176111
|
@ -14,7 +14,7 @@ distfiles="http://www.sqlite.org/2013/sqlite-autoconf-${_amalgamationver}.tar.gz
|
||||||
checksum=1d7e6937c19fc5de1c0cdb392638296e4a6d8b158001dbb421e257dfb6f088db
|
checksum=1d7e6937c19fc5de1c0cdb392638296e4a6d8b158001dbb421e257dfb6f088db
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
export CFLAGS="$XBPS_CFLAGS -DSQLITE_ENABLE_FTS3=1 \
|
export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 \
|
||||||
-DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
-DSQLITE_ENABLE_COLUMN_METADATA=1 \
|
||||||
-DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
|
-DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
|
||||||
|
|
||||||
|
@ -40,7 +40,9 @@ do_build() {
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
|
|
||||||
cd ${wrksrc}/sqlite-autoconf-${_amalgamationver}/tea
|
cd ${wrksrc}/sqlite-autoconf-${_amalgamationver}/tea
|
||||||
[ -n "$CROSS_BUILD" ] && sed -i "s|-L/usr/lib||g" Makefile
|
if [ -n "$CROSS_BUILD" ]; then
|
||||||
|
sed -i "s|-L/usr/lib||g;s|-I\"/usr/include\"||g" Makefile
|
||||||
|
fi
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue