libtool2 update needed for Yosemite
Jack Howarth <[email protected]>
| Newsgroups | gmane.os.apple.fink.devel |
|---|---|
| Message-ID | <CAP5Ds0A_OtiNDVQCg56SPBPP7COrcVdgAR51r7+Ya4MruvyNTQ@mail.gmail.com> |
Max,
We need an fixed libtool2 package for Yosemite. The current one has the
libtool.m4 bug which confused 10.10 with 10.1 and results in shared library
being linked with "-dynamiclib -flat_namespace" rather than the appropriate
"-dynamiclib -undefined dynamic_lookup". While this is fixed in the new
libtool 2.4.3 release, they appear to have broken --program-prefix=g in
that release.
Attached is a libtool2-2.4.2-4 packaging which uses the same back port of
the fix as home-brew.
https://raw.githubusercontent.com/Homebrew/homebrew/master/Library/Formula/libtool.rb
Index: libtool2.info
===================================================================
RCS file: /cvsroot/fink/dists/10.7/stable/main/finkinfo/devel/libtool2.info
,v
retrieving revision 1.5
diff -r1.5 libtool2.info
19c19
< Revision: 3
---
> Revision: 4
26c26,28
< Source-MD5: d2f3b7d4627e69e13514a40e72a24d50
---
> Source-MD5: d2f3b7d4627e69e13514a40e72a24d50
> PatchFile: %n.patch
> PatchFile-MD5: da6decbe2f0b7a3572db27c4bddcadb5
29a32
> %{default_script}
This version passes 'fink -m' and also produces a glib tool which properly
links
the files in cyrus-sasl2-shlibs on Yosemite.
Jack
ps The current fink 0.38.2 release now treats the absence of the TWOLEVEL
flag from the output of 'toool -hv' on a non-bundle shared library as a
marker for the use of -flat_namespace and uses a fatal validation error.
The inappropriate use of -dynamiclib -flat_namespace causes major runtime
regressions for packages like gmp/mpfr/gmp and libgfortran from FSF gcc.
------------------------------------------------------------------------------
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
libtool2.info
(application/octet-stream, 3.7 KB) - not displayed
libtool2.patch
(application/octet-stream, 2.4 KB)
diff --git a/libltdl/config/ltmain.sh b/libltdl/config/ltmain.sh
index 63ae69d..9ae038c 100644
--- a/libltdl/config/ltmain.sh
+++ b/libltdl/config/ltmain.sh
@@ -5851,9 +5851,10 @@ func_mode_link ()
# -tp=* Portland pgcc target processor selection
# --sysroot=* for sysroot support
# -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+ # -stdlib=* select c++ std lib with clang
-64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
- -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
+ -O*|-flto*|-fwhopr*|-fuse-linker-plugin|-stdlib=*)
func_quote_for_eval "$arg"
arg="$func_quote_for_eval_result"
func_append compile_command " $arg"
diff --git a/configure b/configure
index a1ef3e3..782d28a 100755
--- a/configure
+++ b/configure
@@ -7765,7 +7765,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' ;;
diff --git a/libltdl/configure b/libltdl/configure
index f18f272..fef1137 100755
--- a/libltdl/configure
+++ b/libltdl/configure
@@ -6978,7 +6978,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' ;;
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 44e0ecf..4adcf73 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -1052,7 +1052,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' ;;