summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/libtool/files/1.4.3/libtool-1.4.2-archive-shared.patch')
-rw-r--r--sys-devel/libtool/files/1.4.3/libtool-1.4.2-archive-shared.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-devel/libtool/files/1.4.3/libtool-1.4.2-archive-shared.patch b/sys-devel/libtool/files/1.4.3/libtool-1.4.2-archive-shared.patch
new file mode 100644
index 000000000000..52183b2f0f12
--- /dev/null
+++ b/sys-devel/libtool/files/1.4.3/libtool-1.4.2-archive-shared.patch
@@ -0,0 +1,16 @@
+--- libtool-1.4.2/ltmain.sh.archive-shared 2002-07-15 09:12:03.000000000 -0400
++++ libtool-1.4.2/ltmain.sh 2002-07-15 09:13:04.000000000 -0400
+@@ -2644,6 +2644,13 @@ EOF
+ *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+ esac
+ done
++ # It is ok to link against an archive when
++ # building a shared library.
++ if $AR -t $potlib > /dev/null 2>&1; then
++ newdeplibs="$newdeplibs $a_deplib"
++ a_deplib=""
++ break 2
++ fi
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
+ | sed 10q \
+ | egrep "$file_magic_regex" > /dev/null; then