HomeFreeBSD

[PowerPC64LE] Pass our byte order to the sqlite3 build.

Description

[PowerPC64LE] Pass our byte order to the sqlite3 build.

Due to the sqlite3 endian detection code preferring to check platform defines
instead of checking endian defines, it is necessary to manually set
the endianness on PowerPC64LE.

Unlike other bi-endian platforms, PowerPC64LE relies entirely on the
generic endianness macros like BYTE_ORDER and has no platform-specific
define to denote little endian.

Add -DSQLITE_BYTEORDER=1234 to the CFLAGS when building libsqlite3 on
powerpc64le.

Fixes runtime operation of sqlite on PowerPC64LE.

Sponsored by: Tag1 Consulting, Inc.

Details

Provenance
bdragonAuthored on
Parents
rS366055: [PowerPC64LE] libkvm powerpc64le support.
Branches
Unknown
Tags
Unknown