From ad7ab5c568665e59738e8175de41f995db524493 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 30 Apr 2020 01:09:45 +0200 Subject: [PATCH] configure/autoconf_cache: endian fix in ppc32 --- common/environment/configure/autoconf_cache/powerpc32-linux | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/environment/configure/autoconf_cache/powerpc32-linux b/common/environment/configure/autoconf_cache/powerpc32-linux index 19c7920f256..0f461cdbc56 100644 --- a/common/environment/configure/autoconf_cache/powerpc32-linux +++ b/common/environment/configure/autoconf_cache/powerpc32-linux @@ -196,8 +196,10 @@ ac_cv_have_control_in_msghdr=${ac_cv_have_control_in_msghdr='yes'} # vim ac_cv_sizeof_int=${ac_cv_sizeof_int='4'} -#modphp -ac_cv_c_bigendian_php=${ac_cv_c_bigendian_php=yes} +#modphp +if [ "$XBPS_TARGET_ENDIAN" != "le" ]; then + ac_cv_c_bigendian_php=${ac_cv_c_bigendian_php=yes} +fi ac_cv_sizeof_ptrdiff_t=${ac_cv_sizeof_ptrdiff_t=4} # apache2 (note other apache stanza in this file)