summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-php
diff options
context:
space:
mode:
authorChong Lu <Chong.Lu@windriver.com>2013-12-10 18:03:01 +0800
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-12-12 12:04:53 +0000
commita03936118f8cb65458a2a25bcf92469822b08f14 (patch)
treeb6faad112b3b8a3e6d9ef22a11756c7306d0af19 /meta-webserver/recipes-php
parentac3a5d430139e3be08718770e4439032ad3091eb (diff)
downloadmeta-openembedded-a03936118f8cb65458a2a25bcf92469822b08f14.tar.gz
modphp: enable endian check
Previously, modphp estimates endian on host rather than checks it on target. If the host is little-endian and the target is big-endian, modphp claims that endian is little. As a result, a memory location that it is not allowed to access when calling libphp5.so module on target. It will occur segmentation fault. This patch enables endian check support for modphp. Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta-webserver/recipes-php')
-rw-r--r--meta-webserver/recipes-php/modphp/modphp5.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-webserver/recipes-php/modphp/modphp5.inc b/meta-webserver/recipes-php/modphp/modphp5.inc
index 19f1be9cd..314cb91ae 100644
--- a/meta-webserver/recipes-php/modphp/modphp5.inc
+++ b/meta-webserver/recipes-php/modphp/modphp5.inc
@@ -42,7 +42,8 @@ EXTRA_OECONF = "--with-apxs2=${STAGING_BINDIR_CROSS}/apxs \
42 --with-mcrypt=${STAGING_DIR_TARGET}${exec_prefix} \ 42 --with-mcrypt=${STAGING_DIR_TARGET}${exec_prefix} \
43 --enable-zip \ 43 --enable-zip \
44 --enable-mbstring \ 44 --enable-mbstring \
45 --with-config-file-path=${sysconfdir}/php/apache2-php5" 45 --with-config-file-path=${sysconfdir}/php/apache2-php5 \
46 ${@base_conditional('SITEINFO_ENDIANNESS', 'le', 'ac_cv_c_bigendian_php=no', 'ac_cv_c_bigendian_php=yes', d)}"
46 47
47PACKAGECONFIG ??= "mysql" 48PACKAGECONFIG ??= "mysql"
48PACKAGECONFIG[mysql] = "--with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config,--without-mysqli,mysql5" 49PACKAGECONFIG[mysql] = "--with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config,--without-mysqli,mysql5"