From: Graham Gower Date: Mon, 29 Nov 2010 04:12:54 +0000 (+1030) Subject: libxml2: Fix build when DISTRO_FEATURES lacks "largefile". X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7defefaf2dc4860901a83b0051b2daeed34cd1e3;p=openembedded.git libxml2: Fix build when DISTRO_FEATURES lacks "largefile". mipsel-oe-linux-uclibc-libtool: compile: mipsel-oe-linux-uclibc-gcc -march=mips32 -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -isystem/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include -isystem/mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT xmlIO.lo -MD -MP -MF .deps/xmlIO.Tpo -c xmlIO.c -fPIC -DPIC -o .libs/xmlIO.o In file included from /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/stdio.h:72:0, from libxml.h:44, from encoding.c:24: /mnt/oe/tmp/sysroots/mipsel-oe-linux-uclibc/include/bits/uClibc_stdio.h:61:2: error: #error Sorry... uClibc was built without large file support! Signed-off-by: Graham Gower Signed-off-by: Eric Bénard --- diff --git a/recipes/libxml/libxml2.inc b/recipes/libxml/libxml2.inc index c7651a71ea..c3265c978f 100644 --- a/recipes/libxml/libxml2.inc +++ b/recipes/libxml/libxml2.inc @@ -7,6 +7,9 @@ DEPENDS_virtclass-native = "python-native" SRC_URI = "ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz;name=archive" S = "${WORKDIR}/${BPN}-${PV}" +nolargefile = "${@base_contains('DISTRO_FEATURES', 'largefile', '', '-DNO_LARGEFILE_SOURCE', d)}" +EXTRA_OEMAKE_append_libc-uclibc = "'CFLAGS=${CFLAGS} ${nolargefile}'" + INC_PR = "r9" BBCLASSEXTEND = "native"