source: scripts/untested/autotools/patches/libtool-1.4.2-archive-shared.patch@ 8c8c5ab

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 8c8c5ab was d1afb9e, checked in by Jim Gifford <clfs@…>, 19 years ago

r587@server (orig r585): ryan | 2005-08-05 21:51:35 -0700
Add a sane autotools build to the mix.
Blatantly stolen from gentoo...



  • Property mode set to 100644
File size: 633 bytes
RevLine 
[d1afb9e]1--- libtool-1.4.2/ltmain.in.archive-shared 2002-07-15 09:12:03.000000000 -0400
2+++ libtool-1.4.2/ltmain.in 2002-07-15 09:13:04.000000000 -0400
3@@ -2644,6 +2644,13 @@ EOF
4 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
5 esac
6 done
7+ # It is ok to link against an archive when
8+ # building a shared library.
9+ if $AR -t $potlib > /dev/null 2>&1; then
10+ newdeplibs="$newdeplibs $a_deplib"
11+ a_deplib=""
12+ break 2
13+ fi
14 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
15 | sed 10q \
16 | egrep "$file_magic_regex" > /dev/null; then
Note: See TracBrowser for help on using the repository browser.