sdbus-c++-libsystemd: fix musl build by selecting -Dlibc=${TCLIBC}

Without -Dlibc set, systemd's in-tree musl support was disabled and the
static libsystemd.a build failed on musl (missing printf.h).

Signed-off-by: Greg Breen <gregbree@amazon.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Greg Breen authored and Khem Raj committed 2026-09-24 21:56:18 -07:00
1 parent 654b5f2a30
commit ebb9423413
1 file changed
+3
@@ -23,6 +23,9 @@ PACKAGECONFIG[idn] = "-Didn=true,-Didn=false"
CFLAGS:append:libc-musl = " -D__UAPI_DEF_ETHHDR=0 "
# Enable systemd's in-tree musl support (mirrors oe-core's systemd recipe).
EXTRA_OEMESON += "-Dlibc=${TCLIBC}"
EXTRA_OEMESON += "-Dstatic-libsystemd=pic"