sqlite: fix cross build.

This commit is contained in:
Juan RP 2013-04-27 10:25:13 +02:00
parent 55dc336df5
commit b724176111

View file

@ -14,7 +14,7 @@ distfiles="http://www.sqlite.org/2013/sqlite-autoconf-${_amalgamationver}.tar.gz
checksum=1d7e6937c19fc5de1c0cdb392638296e4a6d8b158001dbb421e257dfb6f088db
do_configure() {
export CFLAGS="$XBPS_CFLAGS -DSQLITE_ENABLE_FTS3=1 \
export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 \
-DSQLITE_ENABLE_COLUMN_METADATA=1 \
-DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
@ -40,7 +40,9 @@ do_build() {
make ${makejobs}
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}
}