[librsvg/librsvg-2.50] build: use -framework Foundation on macOS
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.50] build: use -framework Foundation on macOS
- Date: Fri, 4 Dec 2020 18:30:03 +0000 (UTC)
commit 4054580ab3049a9738ac4ef3c7e978d6b76f024f
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 27 20:58:33 2020 -0800
build: use -framework Foundation on macOS
This fixes an issue where link symbols are not available for basic Obj-C
message passing and other release/retain operations.
Fixes #545
Makefile.am | 4 ++++
configure.ac | 16 ++++++++++++++++
2 files changed, 20 insertions(+)
---
diff --git a/Makefile.am b/Makefile.am
index 5e315246..9cb38958 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -225,6 +225,10 @@ librsvg_@RSVG_API_MAJOR_VERSION@_la_LDFLAGS = \
-export-symbols-regex "^rsvg_.*" \
$(AM_LDFLAGS)
+if OS_DARWIN
+librsvg_@RSVG_API_MAJOR_VERSION@_la_LDFLAGS += -framework Foundation
+endif
+
librsvg_@RSVG_API_MAJOR_VERSION@_la_LIBADD = \
librsvg_c_api.la \
$(LIBRSVG_LIBS) \
diff --git a/configure.ac b/configure.ac
index 075ad9c7..fed5f9f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -156,6 +156,22 @@ AM_CONDITIONAL(OS_WIN32, test "$native_win32" = "yes")
dnl ===========================================================================
+#AC_CANONICAL_HOST
+
+AC_MSG_CHECKING([for darwin])
+case "$host" in
+ darwin*)
+ native_darwin=yes
+ ;;
+ *)
+ native_darwin=no
+ ;;
+esac
+AC_MSG_RESULT([$native_darwin])
+AM_CONDITIONAL(OS_DARWIN, test "$native_darwin" = "yes")
+
+dnl ===========================================================================
+
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
AC_SUBST(GLIB_MKENUMS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]