mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
sqlite: explicitly set byte order
This commit is contained in:
parent
9564939e66
commit
ab35dce498
1 changed files with 7 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'sqlite'
|
# Template file for 'sqlite'
|
||||||
pkgname=sqlite
|
pkgname=sqlite
|
||||||
version=3.33.0
|
version=3.33.0
|
||||||
revision=1
|
revision=2
|
||||||
_amalgamationver=$(printf "%d%02d%02d00\n" ${version//./ })
|
_amalgamationver=$(printf "%d%02d%02d00\n" ${version//./ })
|
||||||
wrksrc="sqlite-autoconf-${_amalgamationver}"
|
wrksrc="sqlite-autoconf-${_amalgamationver}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
|
@ -24,6 +24,12 @@ CFLAGS="-DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_COLUMN_METADATA \
|
||||||
CFLAGS+=" -DHAVE_FDATASYNC"
|
CFLAGS+=" -DHAVE_FDATASYNC"
|
||||||
disable_parallel_build=yes
|
disable_parallel_build=yes
|
||||||
|
|
||||||
|
# explicitly set byte order to avoid bad autodetection macros
|
||||||
|
case "$XBPS_TARGET_ENDIAN" in
|
||||||
|
le) CFLAGS+=" -DSHA3_BYTEORDER=1234 -DSQLITE_BYTEORDER=1234";;
|
||||||
|
be) CFLAGS+=" -DSHA3_BYTEORDER=4321 -DSQLITE_BYTEORDER=4321";;
|
||||||
|
esac
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
vsed -i -e 's/ -ltinfo//g' configure
|
vsed -i -e 's/ -ltinfo//g' configure
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue