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 <fathi.boudra@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Fathi Boudra authored and Khem Raj committed 2024-02-17 10:26:58 -08:00
1 parent 5fdbe36887
commit 528f273006
1 file changed
+4 -1
@@ -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"