[OE-core] [oe-core][PATCH] apr: fix configure issue for ppc64 targets

Zhenhua Luo zhenhua.luo at freescale.com
Tue May 28 09:06:24 UTC 2013


Fix following error of apr configure for powerpc64 targets:
| configure:27173: checking whether TCP_NODELAY and TCP_CORK can both be enabled
| configure:27179: error: in `/home/yocto/workspace/sdk-devel/build_p5020ds-64b_release/tmp/work/ppc64e5500-fsl-linux/apr/1.4.6-r2/apr-1.4.6':
| configure:27181: error: cannot run test program while cross compiling

Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
---
 meta/recipes-support/apr/apr_1.4.6.bb |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-support/apr/apr_1.4.6.bb b/meta/recipes-support/apr/apr_1.4.6.bb
index 77dffee..a89d25e 100644
--- a/meta/recipes-support/apr/apr_1.4.6.bb
+++ b/meta/recipes-support/apr/apr_1.4.6.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=0c35ff3c4c83b89d2f076e315caac28b \
 
 BBCLASSEXTEND = "native"
 
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
            file://configure_fixes.patch \
@@ -23,6 +23,8 @@ inherit autotools lib_package binconfig multilib_header
 
 OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
 
+EXTRA_OECONF_powerpc64 += "apr_cv_tcp_nodelay_with_cork=yes"
+
 do_configure_prepend() {
 	cd ${S}
 	./buildconf
-- 
1.7.9.5





More information about the Openembedded-core mailing list