[oe-commits] Otavio Salvador : php: Fix native build due mistakenly linking against host's iconv

git at git.openembedded.org git at git.openembedded.org
Mon Sep 1 09:45:23 UTC 2014


Module: meta-openembedded.git
Branch: daisy
Commit: 662cf409c1175450699d498085f3c894e0fe81d0
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=662cf409c1175450699d498085f3c894e0fe81d0

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Sun Aug 24 18:03:59 2014 -0300

php: Fix native build due mistakenly linking against host's iconv

The configure script has mistakenly choose to enable iconv support,
due host to provide it, adding '/usr/lib' to the linking flags and
failing as:

,----[ Linking error while testing 'fork' support ]
| conftest.c:268: warning: conflicting types for built-in function 'fork'
| .../build/tmp/sysroots/x86_64-linux/usr/lib/libxml2.so:
|     undefined reference to `gzopen64 at ZLIB_1.2.3.3'
| collect2: ld returned 1 exit status
`----

This patch disables iconv support for native builds fixing the error.

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
Acked-by: Armin Kuster <akuster808 at gmail.com>
Acked-by: Cliff Brake <cbrake at bec-systems.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-oe/recipes-devtools/php/php.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-devtools/php/php.inc b/meta-oe/recipes-devtools/php/php.inc
index b1bf79c..1e2aa72 100644
--- a/meta-oe/recipes-devtools/php/php.inc
+++ b/meta-oe/recipes-devtools/php/php.inc
@@ -37,6 +37,7 @@ EXTRA_OECONF = "--enable-mbstring \
 EXTRA_OECONF_virtclass-native = " \
                 --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \
                 --with-libxml-dir=${STAGING_BINDIR_NATIVE} \
+                --without-iconv \
                 ${COMMON_EXTRA_OECONF} \
 "
 



More information about the Openembedded-commits mailing list