aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/libxml
diff options
context:
space:
mode:
authorGraham Gower <graham.gower@gmail.com>2010-11-29 14:42:54 +1030
committerEric Bénard <eric@eukrea.com>2010-11-29 11:31:57 +0100
commit7defefaf2dc4860901a83b0051b2daeed34cd1e3 (patch)
treee91e94268d3674b892aa16eac5d8d06a70128f9e /recipes/libxml
parent471555d4ac810758d6c776101a3eb8c2dbbee225 (diff)
downloadopenembedded-7defefaf2dc4860901a83b0051b2daeed34cd1e3.tar.gz
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 <graham.gower@gmail.com> Signed-off-by: Eric Bénard <eric@eukrea.com>
Diffstat (limited to 'recipes/libxml')
-rw-r--r--recipes/libxml/libxml2.inc3
1 files changed, 3 insertions, 0 deletions
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"