]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: support Mac OS 10.10 and newer.
authorGary V. Vaughan <gary@gnu.org>
Sat, 25 Oct 2014 15:59:07 +0000 (16:59 +0100)
committerGary V. Vaughan <gary@gnu.org>
Sat, 25 Oct 2014 16:17:40 +0000 (17:17 +0100)
The current template mistakenly treats a MACOSX_DEPLOYMENT_TARGET
value of "10.10" as "10.1" followed by junk. Thinking that the
build is targeting 10.1 Puma instead of 10.10 Yosemite, it tells
the linker to ignore undefined symbols instead of dynamically
resolving them. This can cause runtime crashes* and will affect
subsequent versions of OS X.
* libtool.mk (_LT_REQUIRED_DARWIN_CHECKS): Improve case match so
as to reject 10.10.x on the 10.1 and 10.2 branch.
* THANKS: Add Lawrence Velázquez.
From Lawrence Velázquez

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
THANKS
m4/libtool.m4

diff --git a/THANKS b/THANKS
index 85c51509734c4c19f9ed068fe6fea018dba11e37..211ffe1db7c5566ed1035552f229b0857c144426 100644 (file)
--- a/THANKS
+++ b/THANKS
   Khem Raj                      raj.khem@gmail.com
   KO Myung-Hun                 komh@chollian.net
   Kurt D. Zeilenga             Kurt@OpenLDAP.Org
+  Lawrence Velázquez          larryv@macports.com
   Lennart Poettering           lennart@poettering.net
   Lionel Landwerlin             llandwerlin@gmail.com
   Maciej Helminiak             dion2@wp.pl
index 320d8b36f0d6516f4daa8ecbfb019e66837962da..068f0d8be0408374264266bf0a646c85ce140cc0 100644 (file)
@@ -1043,7 +1043,7 @@ _LT_EOF
       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' ;;