aboutsummaryrefslogtreecommitdiff
path: root/devel/libtool/files/patch-ad
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-09-11 01:04:52 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-09-11 01:04:52 +0000
commitbbd6a62a28b2cfb46e412091903f05d22b53e56c (patch)
tree151fed73fada0e22e4f45e6a8572019e9923ef56 /devel/libtool/files/patch-ad
parente972b29b435e82c5c0a027ce8d889a1558a8370f (diff)
downloadports-bbd6a62a28b2cfb46e412091903f05d22b53e56c.tar.gz
ports-bbd6a62a28b2cfb46e412091903f05d22b53e56c.zip
Notes
Diffstat (limited to 'devel/libtool/files/patch-ad')
-rw-r--r--devel/libtool/files/patch-ad159
1 files changed, 129 insertions, 30 deletions
diff --git a/devel/libtool/files/patch-ad b/devel/libtool/files/patch-ad
index 6f5fd6c51975..4834f846a05e 100644
--- a/devel/libtool/files/patch-ad
+++ b/devel/libtool/files/patch-ad
@@ -1,36 +1,28 @@
---- ltmain.sh.orig Thu Apr 29 15:30:37 1999
-+++ ltmain.sh Sat May 22 13:59:59 1999
+--- ltmain.sh.orig Fri Jul 2 09:02:40 1999
++++ ltmain.sh Fri Sep 3 02:01:51 1999
@@ -54,7 +54,7 @@
# Constants.
PROGRAM=ltmain.sh
PACKAGE=libtool
--VERSION=1.3
-+VERSION=1.3-freebsd-ports
- TIMESTAMP=" (1.385.2.117 1999/04/29 13:07:13)"
+-VERSION=1.3.3
++VERSION=1.3.3-freebsd-ports
+ TIMESTAMP=" (1.385.2.181 1999/07/02 15:49:11)"
default_mode=
-@@ -150,6 +150,11 @@
- exit 0
- ;;
-
-+ --prefix)
-+ echo "$PREFIX"
-+ exit 0
-+ ;;
-+
- --debug)
- echo "$progname: enabling shell trace mode"
- set -x
-@@ -928,7 +933,7 @@
+@@ -946,7 +946,11 @@
continue
;;
release)
- release="-$arg"
-+ release="$arg"
++ if test "$release_suffix" = all; then
++ release="$arg"
++ elif test "$release_suffix" = yes; then
++ release="-$arg"
++ fi
prev=
continue
;;
-@@ -981,6 +986,7 @@
+@@ -999,6 +1003,7 @@
;;
-avoid-version)
@@ -38,7 +30,7 @@
avoid_version=yes
continue
;;
-@@ -1066,6 +1072,10 @@
+@@ -1085,6 +1090,10 @@
deplibs="$deplibs $arg"
;;
@@ -49,7 +41,7 @@
-module)
module=yes
continue
-@@ -1763,6 +1773,9 @@
+@@ -1789,6 +1798,9 @@
*-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
# these systems don't actually have a c library (as such)!
;;
@@ -59,34 +51,141 @@
*)
# Add libc to deplibs on all other systems.
deplibs="$deplibs -lc"
-@@ -1785,7 +1798,7 @@
+@@ -1796,6 +1808,94 @@
+ esac
+ fi
+
++ if test -n "$rpath$xrpath"; then
++ # If the user specified any rpath flags, then add them.
++ for libdir in $rpath $xrpath; do
++ # This is the magic to use -rpath.
++ case "$compile_rpath " in
++ *" $libdir "*) ;;
++ *) compile_rpath="$compile_rpath $libdir" ;;
++ esac
++ case "$finalize_rpath " in
++ *" $libdir "*) ;;
++ *) finalize_rpath="$finalize_rpath $libdir" ;;
++ esac
++ done
++ fi
++
++ # Now hardcode the library paths
++ rpath=
++ hardcode_libdirs=
++ for libdir in $compile_rpath; do
++ if test -n "$hardcode_libdir_flag_spec"; then
++ if test -n "$hardcode_libdir_separator"; then
++ if test -z "$hardcode_libdirs"; then
++ hardcode_libdirs="$libdir"
++ else
++ # Just accumulate the unique libdirs.
++ case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
++ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
++ ;;
++ *)
++ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
++ ;;
++ esac
++ fi
++ else
++ eval flag=\"$hardcode_libdir_flag_spec\"
++ rpath="$rpath $flag"
++ fi
++ elif test -n "$runpath_var"; then
++ case "$perm_rpath " in
++ *" $libdir "*) ;;
++ *) perm_rpath="$perm_rpath $libdir" ;;
++ esac
++ fi
++ done
++ # Substitute the hardcoded libdirs into the rpath.
++ if test -n "$hardcode_libdir_separator" &&
++ test -n "$hardcode_libdirs"; then
++ libdir="$hardcode_libdirs"
++ eval rpath=\" $hardcode_libdir_flag_spec\"
++ fi
++ compile_rpath="$rpath"
++
++ rpath=
++ hardcode_libdirs=
++ for libdir in $finalize_rpath; do
++ if test -n "$hardcode_libdir_flag_spec"; then
++ if test -n "$hardcode_libdir_separator"; then
++ if test -z "$hardcode_libdirs"; then
++ hardcode_libdirs="$libdir"
++ else
++ # Just accumulate the unique libdirs.
++ case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
++ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
++ ;;
++ *)
++ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
++ ;;
++ esac
++ fi
++ else
++ eval flag=\"$hardcode_libdir_flag_spec\"
++ rpath="$rpath $flag"
++ fi
++ elif test -n "$runpath_var"; then
++ case "$finalize_perm_rpath " in
++ *" $libdir "*) ;;
++ *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
++ esac
++ fi
++ done
++ # Substitute the hardcoded libdirs into the rpath.
++ if test -n "$hardcode_libdir_separator" &&
++ test -n "$hardcode_libdirs"; then
++ libdir="$hardcode_libdirs"
++ eval rpath=\" $hardcode_libdir_flag_spec\"
++ fi
++ finalize_rpath="$rpath"
++
+ # Create the output directory, or remove our outputs if we need to.
+ if test -d $output_objdir; then
+ $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
+@@ -1811,7 +1911,11 @@
# Now set the variables for building old libraries.
if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
- oldlibs="$oldlibs $output_objdir/$libname.$libext"
-+ oldlibs="$oldlibs $output_objdir/$libname$release.$libext"
++ if test "$release_suffix" = all; then
++ oldlibs="$oldlibs $output_objdir/$libname$release.$libext"
++ else
++ oldlibs="$oldlibs $output_objdir/$libname.$libext"
++ fi
# Transform .lo files to .o files.
oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
-@@ -1979,7 +1992,7 @@
+@@ -2005,7 +2109,11 @@
echo "*** \`nm' from GNU binutils and a full rebuild may help."
fi
if test "$build_old_libs" = no; then
- oldlibs="$output_objdir/$libname.$libext"
-+ oldlibs="$output_objdir/$libname$release.$libext"
++ if test "$release_suffix" = all; then
++ oldlibs="$output_objdir/$libname$release.$libext"
++ else
++ oldlibs="$output_objdir/$libname.$libext"
++ fi
build_libtool_libs=module
build_old_libs=yes
else
-@@ -2933,7 +2946,7 @@
+@@ -3026,7 +3134,11 @@
case "$output" in
*.la)
old_library=
- test "$build_old_libs" = yes && old_library="$libname.$libext"
-+ test "$build_old_libs" = yes && old_library="$libname$release.$libext"
++ if test "$release_suffix" = all; then
++ test "$build_old_libs" = yes && old_library="$libname$release.$libext"
++ else
++ test "$build_old_libs" = yes && old_library="$libname.$libext"
++ fi
$show "creating $output"
if test -n "$xrpath"; then
-@@ -3230,10 +3243,12 @@
+@@ -3315,10 +3427,12 @@
fi
# Install the pseudo-library for information purposes.
@@ -103,7 +202,7 @@
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
-@@ -3322,7 +3337,6 @@
+@@ -3407,7 +3521,6 @@
fi
libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
if test -n "$libdir" && test ! -f "$libfile"; then