diff mbox series

[meta-darwin,5/5] gnutls: pass -F for the Apple frameworks on Darwin nativesdk

Message ID 20261116202223.654-5-ecordonnier@snap.com
State New
Headers show
Series [meta-darwin,1/5] file: disable lzlib | expand

Commit Message

Etienne Cordonnier Nov. 16, 2026, 8:22 p.m. UTC
From: Etienne Cordonnier <ecordonnier@snap.com>

lib/system/certs.c uses the Security and CoreFoundation frameworks, which are
in the SDK runtime tree but need -F.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
 recipes-support/gnutls/gnutls_%.bbappend | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 recipes-support/gnutls/gnutls_%.bbappend
diff mbox series

Patch

diff --git a/recipes-support/gnutls/gnutls_%.bbappend b/recipes-support/gnutls/gnutls_%.bbappend
new file mode 100644
index 0000000..4b1ad1a
--- /dev/null
+++ b/recipes-support/gnutls/gnutls_%.bbappend
@@ -0,0 +1,5 @@ 
+# gnutls (lib/system/certs.c) uses the Security/CoreFoundation frameworks.
+# They are in the SDK runtime tree but need -F, which nothing adds by default.
+OSXSDK:class-nativesdk:darwin21 = "${STAGING_DIR_TARGET}${SDKPATHNATIVE}/runtime"
+CPPFLAGS:append:class-nativesdk:darwin21 = " -F${OSXSDK}/System/Library/Frameworks"
+LDFLAGS:append:class-nativesdk:darwin21 = " -F${OSXSDK}/System/Library/Frameworks"