summaryrefslogtreecommitdiff
path: root/ltmain.sh
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1998-09-20 22:14:58 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-09-20 22:14:58 +0000
commitbeb6af329e29996d03048d43b000a2f3814f8581 (patch)
tree0b053ee3f4d37941fdce675197cccc60043bdd61 /ltmain.sh
parent240a22f4ed8e2959abfa8cdffd2a8c84dcdc4ddc (diff)
downloadgdk-pixbuf-beb6af329e29996d03048d43b000a2f3814f8581.tar.gz
Patch to libtool-1.2b to make --disable-static
Sun Sep 20 18:21:46 1998 Owen Taylor <otaylor@redhat.com> * ltconfig.sh: Patch to libtool-1.2b to make --disable-static
Diffstat (limited to 'ltmain.sh')
-rw-r--r--ltmain.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/ltmain.sh b/ltmain.sh
index cb8174715..062d3f238 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -932,7 +932,7 @@ if test -z "$show_help"; then
install_libdir="$2"
# Now set the variables for building old libraries.
- oldlibs="$objdir/$libname.a"
+ oldlibs=
if test -z "$rpath"; then
# Building a libtool convenience library.
oldlibs="$objdir/$libname.al $oldlibs"
@@ -1074,6 +1074,14 @@ if test -z "$show_help"; then
fi
fi
+ # Now set the variables for building old libraries.
+ if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
+ oldlibs="$oldlibs $objdir/$libname.a"
+
+ # Transform .lo files to .o files.
+ oldobjs="$objs"`$echo "X$libobjs " | $Xsed -e 's/[^ ]*\.a //g' -e 's/\.lo /.o /g' -e 's/ $//g'`
+ fi
+
if test "$build_libtool_libs" = yes; then
# Get the real and link names of the library.
eval library_names=\"$library_names_spec\"
@@ -1096,9 +1104,6 @@ if test -z "$show_help"; then
# Use standard objects if they are PIC.
test -z "$pic_flag" && libobjs=`$echo "X$libobjs " | $Xsed -e 's/\.lo /.o /g' -e 's/ $//g'`
- # Transform .lo files to .o files.
- test "$build_old_libs" = yes && oldobjs="$objs"`$echo "X$libobjs " | $Xsed -e 's/[^ ]*\.a //g' -e 's/\.lo /.o /g' -e 's/ $//g'`
-
if test -n "$whole_archive_flag_spec"; then
if test -n "$convenience"; then
eval libobjs=\"\$libobjs $whole_archive_flag_spec\"