summaryrefslogtreecommitdiff
path: root/devel/libtool/patches
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-10-02 14:49:33 +0000
committertv <tv@pkgsrc.org>1998-10-02 14:49:33 +0000
commite9b1ca5deafa3c550034772f671f5d463b33ce93 (patch)
tree29509fed3981e8e0bfad1f38c1d07b46658540f6 /devel/libtool/patches
parent23e57ce8b106020d0234347dcee26df7ec04e649 (diff)
downloadpkgsrc-e9b1ca5deafa3c550034772f671f5d463b33ce93.tar.gz
Switch USE_LIBTOOL pkgs to use pkglibtool, and revert libtool back to a
"vanilla" libtool (pkg now called glibtool) that understands NetBSD ELF.
Diffstat (limited to 'devel/libtool/patches')
-rw-r--r--devel/libtool/patches/patch-aa12
-rw-r--r--devel/libtool/patches/patch-ab42
2 files changed, 6 insertions, 48 deletions
diff --git a/devel/libtool/patches/patch-aa b/devel/libtool/patches/patch-aa
index a5d8835811f..7948395907b 100644
--- a/devel/libtool/patches/patch-aa
+++ b/devel/libtool/patches/patch-aa
@@ -1,13 +1,11 @@
-$NetBSD: patch-aa,v 1.4 1998/08/07 10:40:25 agc Exp $
-
--- ltconfig.orig Fri Mar 20 03:00:29 1998
-+++ ltconfig Sun Jul 12 22:48:41 1998
++++ ltconfig Sun Sep 27 11:47:30 1998
@@ -808,7 +808,11 @@
netbsd*)
# Tested with NetBSD 1.2 ld
- archive_cmds='$LD -Bshareable -o $lib$libobjs'
-+ if [ -f /usr/lib/libc.so ]; then
++ if $CC -E - -dM </dev/null | grep -q __ELF__; then
+ archive_cmds='$LD -shared -o $lib$libobjs' # ELF
+ else
+ archive_cmds='$LD -Bshareable -o $lib$libobjs' # a.out
@@ -15,18 +13,20 @@ $NetBSD: patch-aa,v 1.4 1998/08/07 10:40:25 agc Exp $
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
-@@ -1181,8 +1185,13 @@
+@@ -1181,8 +1185,15 @@
netbsd* | openbsd*)
version_type=sunos
- library_names_spec='${libname}${release}.so.$versuffix'
- finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
-+ if [ -f /usr/lib/libc.so ]; then
++ if $CC -E - -dM </dev/null | grep -q __ELF__; then
+ library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so'
+ soname_spec='${libname}${release}.so.$major'
++ dynamic_linker='NetBSD ld.elf_so'
+ else
+ library_names_spec='${libname}${release}.so.$versuffix'
+ finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
++ dynamic_linker='NetBSD/OpenBSD (a.out) ld.so'
+ fi
shlibpath_var=LD_LIBRARY_PATH
;;
diff --git a/devel/libtool/patches/patch-ab b/devel/libtool/patches/patch-ab
deleted file mode 100644
index eb49fd6511e..00000000000
--- a/devel/libtool/patches/patch-ab
+++ /dev/null
@@ -1,42 +0,0 @@
-$NetBSD: patch-ab,v 1.6 1998/08/07 10:40:26 agc Exp $
-
---- ltmain.sh.orig Tue Jul 21 16:59:33 1998
-+++ ltmain.sh Tue Jul 21 17:02:42 1998
-@@ -144,6 +144,8 @@
- prev=execute_dlfiles
- ;;
-
-+ --install-la) install_la="yes" ;;
-+
- -*)
- $echo "$modename: unrecognized option \`$arg'" 1>&2
- $echo "$help" 1>&2
-@@ -1841,10 +1843,12 @@
- IFS="$save_ifs"
- fi
-
-+if test -n "$install_la"; then
- # Install the pseudo-library for information purposes.
- name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
- $show "$install_prog $file $destdir/$name"
- $run eval "$install_prog $file $destdir/$name" || exit $?
-+fi
-
- # Maybe install the static library, too.
- test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
-@@ -1912,6 +1916,7 @@
- exit 1
- fi
-
-+if test -n "$install_la"; then
- finalize=yes
- for lib in $link_against_libtool_libs; do
- # Check to see that each library is installed.
-@@ -1932,6 +1937,7 @@
- finalize=no
- fi
- done
-+fi
-
- if test "$hardcode_action" = relink; then
- if test "$finalize" = yes; then