mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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
This commit is contained in:
parent
b03c37cf3b
commit
cc50c19544
@ -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 <AvailabilityMacros.h>
|
||||
|
@ -524,7 +524,7 @@ glib_have_cocoa = cc.compiles('''#include <Cocoa/Cocoa.h>
|
||||
|
||||
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=''
|
||||
|
Loading…
Reference in New Issue
Block a user