mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
build: Include Cocoa/Carbon in Libs.private if targetting Mac OS X
This allows static linking against GIO on OS X, which would previously fail due to unresolved symbols from the above two frameworks. https://bugzilla.gnome.org/show_bug.cgi?id=668152
This commit is contained in:
committed by
Philip Withnall
parent
638993f5ac
commit
8d037c678d
14
configure.ac
14
configure.ac
@@ -213,13 +213,17 @@ AM_CONDITIONAL(MS_LIB_AVAILABLE, [test x$ms_librarian = xyes])
|
||||
|
||||
AS_IF([test "x$glib_have_carbon" = "xyes"], [
|
||||
AC_DEFINE(HAVE_CARBON, 1, [define to 1 if Carbon is available])
|
||||
LDFLAGS="$LDFLAGS -Wl,-framework,Carbon"
|
||||
])
|
||||
CARBON_LIBS="-Wl,-framework,Carbon"
|
||||
LDFLAGS="$LDFLAGS $CARBON_LIBS"
|
||||
], [CARBON_LIBS=""])
|
||||
|
||||
if test "x$glib_have_cocoa" = "xyes"; then
|
||||
AS_IF([test "x$glib_have_cocoa" = "xyes"], [
|
||||
AC_DEFINE(HAVE_COCOA, 1, [define to 1 if Cocoa is available])
|
||||
LDFLAGS="$LDFLAGS -Wl,-framework,Foundation"
|
||||
fi
|
||||
COCOA_LIBS="-Wl,-framework,Foundation"
|
||||
LDFLAGS="$LDFLAGS $COCOA_LIBS"
|
||||
], [COCOA_LIBS=""])
|
||||
|
||||
AC_SUBST([COCOA_LIBS])
|
||||
|
||||
dnl declare --enable-* args and collect ac_help strings
|
||||
AC_ARG_ENABLE(debug,
|
||||
|
Reference in New Issue
Block a user