mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 23:17:50 +00:00
mariadb: dont build target with _TIME_BITS or _FILE_OFFSET_BITS for arm32 userland builds
The TIMESTAMP field in Mariadb is not Y2038 safe. Refer: https://mariadb.com/kb/en/timestamp/ https://jira.mariadb.org/browse/MDEV-341
This commit is contained in:
parent
e80603557c
commit
79791faf43
@ -20,6 +20,16 @@ PKG_SECTION="service"
|
||||
PKG_ADDON_NAME="MariaDB SQL database server"
|
||||
PKG_ADDON_TYPE="xbmc.service"
|
||||
|
||||
pre_configure_target() {
|
||||
# mariadb does not need / nor build successfully with _FILE_OFFSET_BITS or _TIME_BITS set
|
||||
if [ "${TARGET_ARCH}" = "arm" ]; then
|
||||
export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-D_FILE_OFFSET_BITS=64||g")
|
||||
export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-D_TIME_BITS=64||g")
|
||||
export CXXFLAGS=$(echo ${CXXFLAGS} | sed -e "s|-D_FILE_OFFSET_BITS=64||g")
|
||||
export CXXFLAGS=$(echo ${CXXFLAGS} | sed -e "s|-D_TIME_BITS=64||g")
|
||||
fi
|
||||
}
|
||||
|
||||
configure_package() {
|
||||
PKG_CMAKE_OPTS_HOST=" \
|
||||
-DCMAKE_INSTALL_MESSAGE=NEVER \
|
||||
|
Loading…
x
Reference in New Issue
Block a user