From 528f273006965496ce7e19147f0a0e34a97a8f9c Mon Sep 17 00:00:00 2001 From: Fathi Boudra Date: Sat, 17 Feb 2024 17:34:08 +0100 Subject: [PATCH] libtinyxml2: allow to build both shared and static libraries E.g. if we want to build uuu statically, libtinyxml2 static library is missing as it builds only the shared library by default. Signed-off-by: Fathi Boudra Signed-off-by: Khem Raj --- meta-oe/recipes-support/libtinyxml2/libtinyxml2_10.0.0.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_10.0.0.bb b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_10.0.0.bb index 5039e9ff77..1c94eff246 100644 --- a/meta-oe/recipes-support/libtinyxml2/libtinyxml2_10.0.0.bb +++ b/meta-oe/recipes-support/libtinyxml2/libtinyxml2_10.0.0.bb @@ -12,7 +12,10 @@ S = "${WORKDIR}/git" inherit meson ptest -EXTRA_OEMESON += "${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true', '', d)}" +EXTRA_OEMESON += " \ + ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true', '', d)} \ + -Ddefault_library=both \ +" CXXFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE"