From cc50c19544a6aa930b83b53f2690f4d126ddb443 Mon Sep 17 00:00:00 2001 From: "Dr. Michael Lauer" Date: Mon, 5 Mar 2018 15:13:59 +0100 Subject: [PATCH] configure.ac: link to AppKit on macOS. This is actually only necessary for gio, not for the other libraries. https://bugzilla.gnome.org/show_bug.cgi?id=793565 --- configure.ac | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index de97a8f68..1f6875b73 100644 --- a/configure.ac +++ b/configure.ac @@ -230,7 +230,7 @@ AC_SUBST([CARBON_LIBS]) ac_cv_have_os_x_9_or_later="no" AS_IF([test "x$glib_have_cocoa" = "xyes"], [ AC_DEFINE(HAVE_COCOA, 1, [define to 1 if Cocoa is available]) - COCOA_LIBS="-Wl,-framework,Foundation" + COCOA_LIBS="-Wl,-framework,Foundation -Wl,-framework,AppKit" LDFLAGS="$LDFLAGS $COCOA_LIBS" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include diff --git a/meson.build b/meson.build index de12b8811..ab377981d 100644 --- a/meson.build +++ b/meson.build @@ -524,7 +524,7 @@ glib_have_cocoa = cc.compiles('''#include if glib_have_cocoa glib_conf.set('HAVE_COCOA', true) - COCOA_LIBS='-Wl,-framework,Foundation' # FIXME: propagate to .pc files as well + COCOA_LIBS='-Wl,-framework,Foundation -Wl,-framework,AppKit' # FIXME: propagate to .pc files as well platform_ldflags += [COCOA_LIBS] else COCOA_LIBS=''