From 0ed8ee27fd04c8872568245ca5dc4d9ca96e289a Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 16 Dec 2020 20:26:10 +0100 Subject: [PATCH] sqlite-replication: explicit byte order --- srcpkgs/sqlite-replication/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/sqlite-replication/template b/srcpkgs/sqlite-replication/template index 8c756e1765..f9110a0e95 100644 --- a/srcpkgs/sqlite-replication/template +++ b/srcpkgs/sqlite-replication/template @@ -24,6 +24,12 @@ CFLAGS+="-DSQLITE_ENABLE_DBSTAT_VTAB -DSQLITE_ENABLE_COLUMN_METADATA \ CFLAGS+=" -DHAVE_FDATASYNC" 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() { sed -i -e 's/ -ltinfo//g' configure }