* config/ltmain.m4sh [darwin]: Make the -dylib_file flag work on

older darwins too. Reported by Christoph Egger.
This commit is contained in:
Peter O'Gorman 2004-10-05 04:16:10 +00:00
parent 2fc0e2fe16
commit 96786b270c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-10-05 Peter O'Gorman <peter@pogma.com>
* config/ltmain.m4sh [darwin]: Make the -dylib_file flag work on
older darwins too. Reported by Christoph Egger.
2004-10-05 Gary V. Vaughan <gary@gnu.org>
* configure.ac: Bumped version to 2.1a.

View File

@ -3903,7 +3903,8 @@ func_mode_link ()
done
if test -f "$absdir/$objdir/$depdepl" ; then
depdepl="$absdir/$objdir/$depdepl"
eval darwin_install_name=`otool -L $depdepl | $SED -n -e '3q;2,2p' | $SED -e 's/(.*//' | xargs`
darwin_install_name=`otool -L $depdepl | $SED -n -e '3q;2,2p' | $SED -e 's/(.*//'`
darwin_install_name=`$ECHO $darwin_install_name`
compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
path=