summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2013-10-23 22:44:13 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-10-23 22:44:13 (GMT)
commit21a4a9003e3acc161f0ae95c23ad44bad0250881 (patch)
tree05066fdabe5df91179e06d597d5890d6cf1790f8
parent797952e1ae130b674cb501a00036c24a2ce79537 (diff)
downloadbuildroot-21a4a9003e3acc161f0ae95c23ad44bad0250881.tar.gz
buildroot-21a4a9003e3acc161f0ae95c23ad44bad0250881.tar.bz2
php: fix runtime error on big endian
Fixes #6566 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/php/php.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/php/php.mk b/package/php/php.mk
index 92665b4..e310bd6 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)