aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-02-11 09:28:41 -0800
committerKhem Raj <raj.khem@gmail.com>2019-02-12 08:40:40 -0800
commitc0a71bc2631988dbf7ed72ddf30c67440713ee47 (patch)
tree7f8ad398b45b6b7d40159686287677a4756dbf23
parentc88af81ef8f3853f5fbc3842cfe8ef9ac3fc0eba (diff)
downloadmeta-openembedded-contrib-c0a71bc2631988dbf7ed72ddf30c67440713ee47.tar.gz
meta-openembedded-contrib-c0a71bc2631988dbf7ed72ddf30c67440713ee47.tar.bz2
meta-openembedded-contrib-c0a71bc2631988dbf7ed72ddf30c67440713ee47.zip
libupnp: Build samples with LFS on
Fixes errors ( qemuarm/thumb ) ../../../git/upnp/inc/FileInfo.h:22:2: error: #error libupnp uses large file support, so users must do that, too Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-multimedia/recipes-connectivity/libupnp/libupnp_git.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-connectivity/libupnp/libupnp_git.bb b/meta-multimedia/recipes-connectivity/libupnp/libupnp_git.bb
index 50d19de675..339c07cd96 100644
--- a/meta-multimedia/recipes-connectivity/libupnp/libupnp_git.bb
+++ b/meta-multimedia/recipes-connectivity/libupnp/libupnp_git.bb
@@ -19,3 +19,7 @@ S="${WORKDIR}/git"
inherit autotools
EXTRA_OECONF += "--enable-reuseaddr"
+
+# Enable LFS support ( for samples )
+CFLAGS += "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+CXXFLAGS += "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"