mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-05 12:22:57 +02:00
sqlite-replication: explicit byte order
This commit is contained in:
parent
ab35dce498
commit
0ed8ee27fd
1 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||||
sed -i -e 's/ -ltinfo//g' configure
|
sed -i -e 's/ -ltinfo//g' configure
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue