Skip to contentSkip to conversation

php: fix libxml2 build failure

PATCH New Gustavo Zacarias 2 participants 2 messages Apr 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 php: fix libxml2 build failure

The libxml2 build test uses the PHP_TEST_BUILD macro which in turn uses AC_TRY_RUN which is bad for cross compilations.
Force php_cv_libxml_build_works to yes when libxml2 is selected. Fixes:
http://autobuild.buildroot.net/results/8b45a1260ab6ae15dc59a5d6b5b98698ec3e7bbe/

---
 package/php/php.mk | 1 +
 1 file changed, 1 insertion(+)
package/php/php.mk +1 -0
index ba428a6..2a452d1 100644
@@ -66,6 +66,7 @@ ifeq ($(BR2_PACKAGE_PHP_EXT_OPENSSL),y)
 endif
 
 ifeq ($(BR2_PACKAGE_PHP_EXT_LIBXML2),y)
+	PHP_CONF_ENV += php_cv_libxml_build_works=yes
 	PHP_CONF_OPT += --enable-libxml --with-libxml-dir=${STAGING_DIR}/usr
 	PHP_DEPENDENCIES += libxml2
 endif
Signature · 1 line
1.8.1.5
#1 lore raw

PATCH 1/1 php: fix libxml2 build failure

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> The libxml2 build test uses the PHP_TEST_BUILD macro which in turn uses Gustavo> AC_TRY_RUN which is bad for cross compilations.
Gustavo> Force php_cv_libxml_build_works to yes when libxml2 is selected. Fixes:
Gustavo> http://autobuild.buildroot.net/results/8b45a1260ab6ae15dc59a5d6b5b98698ec3e7bbe/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard