From 21a4a9003e3acc161f0ae95c23ad44bad0250881 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 24 Oct 2013 00:44:13 +0200 Subject: [PATCH] php: fix runtime error on big endian Fixes #6566 Signed-off-by: Peter Korsgaard --- package/php/php.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/php/php.mk b/package/php/php.mk index 92665b46b3..e310bd6052 100644 --- a/package/php/php.mk +++ b/package/php/php.mk @@ -19,6 +19,11 @@ PHP_CONF_OPT = --mandir=/usr/share/man \ --with-config-file-path=/etc \ --localstatedir=/var \ --disable-rpath +ifeq ($(BR2_ENDIAN),"BIG") +PHP_CONF_ENV = ac_cv_c_bigendian_php=yes +else +PHP_CONF_ENV = ac_cv_c_bigendian_php=no +endif PHP_CONFIG_SCRIPTS = php-config PHP_CFLAGS = $(TARGET_CFLAGS) -- 2.30.2