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
2024-02-17 17:34:08 +01:00
committed by Khem Raj
parent 5fdbe36887
commit 528f273006
@@ -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"