[127207] trunk/dports/devel/glib2

larryv at macports.org larryv at macports.org
Wed Oct 22 16:14:09 PDT 2014


Revision: 127207
          https://trac.macports.org/changeset/127207
Author:   larryv at macports.org
Date:     2014-10-22 16:14:09 -0700 (Wed, 22 Oct 2014)
Log Message:
-----------
glib2: Fix Libtool MACOSX_DEPLOYMENT_TARGET bug

This was causing universal build failures on Yosemite, as linker
invocations would try to link to seemingly-random libraries that were
not specified on the command line, erroring out with "ld: in
'/opt/local/lib/libsqlite3.dylib', file was built for x86_64 which is
not the architecture being linked (i386):
/opt/local/lib/libsqlite3.dylib for architecture i386" (although the
exact library varied depending on which other ports were installed).

Modified Paths:
--------------
    trunk/dports/devel/glib2/Portfile

Added Paths:
-----------
    trunk/dports/devel/glib2/files/yosemite-symbol-lookup.patch

Modified: trunk/dports/devel/glib2/Portfile
===================================================================
--- trunk/dports/devel/glib2/Portfile	2014-10-22 23:11:27 UTC (rev 127206)
+++ trunk/dports/devel/glib2/Portfile	2014-10-22 23:14:09 UTC (rev 127207)
@@ -42,7 +42,8 @@
                             patch-gi18n.h.diff \
                             patch-gio_xdgmime_xdgmime.c.diff \
                             patch-gio_gdbusprivate.c.diff \
-                            patch-get-launchd-dbus-session-address.diff
+                            patch-get-launchd-dbus-session-address.diff \
+                            yosemite-symbol-lookup.patch
 
 depends_build               bin:xmllint:libxml2
 

Added: trunk/dports/devel/glib2/files/yosemite-symbol-lookup.patch
===================================================================
--- trunk/dports/devel/glib2/files/yosemite-symbol-lookup.patch	                        (rev 0)
+++ trunk/dports/devel/glib2/files/yosemite-symbol-lookup.patch	2014-10-22 23:14:09 UTC (rev 127207)
@@ -0,0 +1,13 @@
+Index: configure
+===================================================================
+--- configure.orig
++++ configure
+@@ -11742,7 +11742,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
+       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
+ 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+-	10.[012]*)
++	10.[012][,.]*)
+ 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ 	10.*)
+ 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141022/7effee25/attachment.html>


More information about the macports-changes mailing list