]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
configure.ac: add missing Libs.private for macOS
authorMarvin Scholz <epirat07@gmail.com>
Wed, 23 Feb 2022 18:03:51 +0000 (19:03 +0100)
committerMarvin Scholz <epirat07@gmail.com>
Wed, 23 Feb 2022 18:05:19 +0000 (19:05 +0100)
On macOS the CoreFoundation and Security frameworks are used by
GnuTLS, however those were missing in the Libs.private in the .pc
resulting in link failures with static builds when relying on the
output of pkg-config --static.

Signed-off-by: Marvin Scholz <epirat07@gmail.com>
configure.ac

index 53c3aefca1ae2371fba5f325ea0aa3207c26f3de..9378d81f102dd31997350486f072def00d51583e 100644 (file)
@@ -150,6 +150,7 @@ case "$host" in
     AC_MSG_CHECKING([whether the linker supports -Wl,-no_weak_imports])
     AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
       [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no); LDFLAGS="$save_LDFLAGS"])
+    GNUTLS_LIBS_PRIVATE="${GNUTLS_LIBS_PRIVATE} -framework Security -framework CoreFoundation"
   ;;
   *solaris*)
     have_elf=yes