From: Alexandre Oliva Date: Tue, 5 Sep 2000 10:29:19 +0000 (+0000) Subject: * ltconfig.in: Removed all references to what used to be X-Git-Tag: multi-language-merge-point~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a2b47cc44dfc0c1bc74d0cda46394e1e41a7d68;p=thirdparty%2Flibtool.git * ltconfig.in: Removed all references to what used to be hardcode_into_libs=all. 2000-09-03's patch was wrong. * ltmain.in: Likewise. * tests/build-relink.test, tests/build-relink2.test: Adjust. --- diff --git a/ChangeLog b/ChangeLog index c7c850855..55d10112f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2000-09-05 Alexandre Oliva + * ltconfig.in: Removed all references to what used to be + hardcode_into_libs=all. 2000-09-03's patch was wrong. + * ltmain.in: Likewise. + * tests/build-relink.test, tests/build-relink2.test: Adjust. + * libtool.m4 (LT_AC_PROG_GCJ): Remove excess closing brackets. 2000-09-04 Alexandre Oliva diff --git a/ltconfig.in b/ltconfig.in index e92fdd525..efb6016e9 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -1442,9 +1442,7 @@ test "$enable_shared" = yes || enable_static=yes echo "checking whether to build static libraries... $enable_static" 1>&6 -if test "$hardcode_action" = relink || - { test "$hardcode_into_libs" = yes && - test "$shlibpath_overrides_runpath" != yes; }; then +if test "$hardcode_action" = relink; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || diff --git a/ltmain.in b/ltmain.in index e71c7834e..cce9b69a2 100644 --- a/ltmain.in +++ b/ltmain.in @@ -1875,9 +1875,6 @@ EOF if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && - { test "$hardcode_into_libs" != yes || - test "$shlibpath_overrides_runpath" = yes || - test "$alldeplibs" != yes; } && { test "$prefer_static_libs" = no || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var"; then @@ -1931,8 +1928,7 @@ EOF fi # This is a shared library if test $linkmode = lib && - test "$hardcode_into_libs" = yes && - test "$shlibpath_overrides_runpath" != yes; then + test $hardcode_into_libs = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. @@ -2132,7 +2128,7 @@ EOF if test $linkmode = lib; then if test -n "$dependency_libs" && - { test "$hardcode_into_libs" = no || test $build_old_libs = yes || + { test $hardcode_into_libs != yes || test $build_old_libs = yes || test $link_static = yes; }; then # Extract -R from dependency_libs temp_deplibs= @@ -2575,7 +2571,7 @@ EOF *) finalize_rpath="$finalize_rpath $libdir" ;; esac done - if test "$hardcode_into_libs" = no || test $build_old_libs = yes; then + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi @@ -2825,7 +2821,7 @@ EOF # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then - if test "$hardcode_into_libs" != no; then + if test $hardcode_into_libs = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= @@ -2991,9 +2987,7 @@ EOF fi # Make a backup of the uninstalled library when relinking - if test "$mode" = relink && - test "$hardcode_into_libs" = yes && - test "$shlibpath_overrides_runpath" != yes; then + if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? fi @@ -3012,9 +3006,7 @@ EOF IFS="$save_ifs" # Restore the uninstalled library and exit - if test "$mode" = relink && - test "$hardcode_into_libs" = yes && - test "$shlibpath_overrides_runpath" != yes; then + if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? exit 0 fi @@ -3575,9 +3567,7 @@ static const void *lt_preloaded_setup() { exit 0 fi - if test "$hardcode_action" = relink || - { test "$hardcode_into_libs" = yes && - test "$shlibpath_overrides_runpath" != yes; }; then + if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" @@ -4033,9 +4023,7 @@ dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" - if test "$hardcode_into_libs" = yes && - test "$shlibpath_overrides_runpath" != yes && - test "$installed" = no && test $need_relink = yes; then + if test "$installed" = no && test $need_relink = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi @@ -4245,9 +4233,7 @@ relink_command=\"$relink_command\"" test "X$dir" = "X$file/" && dir= dir="$dir$objdir" - if test "$hardcode_into_libs" = yes && - test "$shlibpath_overrides_runpath" != yes && - test -n "$relink_command"; then + if test -n "$relink_command"; then $echo "$modename: warning: relinking \`$file'" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : @@ -4265,8 +4251,6 @@ relink_command=\"$relink_command\"" shift srcname="$realname" - test "$hardcode_into_libs" = yes && - test "$shlibpath_overrides_runpath" != yes && test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. diff --git a/tests/build-relink.test b/tests/build-relink.test index 5050519e2..00427703e 100755 --- a/tests/build-relink.test +++ b/tests/build-relink.test @@ -99,9 +99,7 @@ else echo "Failed, as expected" fi -if test "x$hardcode_action" = xrelink || - { test "x$hardcode_into_libs" = xyes && - test "x$shlibpath_overrides_runpath" != xyes; }; then +if test "x$hardcode_action" = xrelink; then echo "= Exiting: install-time relinking is required" exit 0 fi diff --git a/tests/build-relink2.test b/tests/build-relink2.test index c842e5b54..d0b560e07 100755 --- a/tests/build-relink2.test +++ b/tests/build-relink2.test @@ -99,9 +99,7 @@ else echo "Failed, as expected" fi -if test "x$hardcode_action" = xrelink || - { test "x$hardcode_into_libs" = xyes && - test "x$shlibpath_overrides_runpath" != xyes; }; then +if test "x$hardcode_action" = xrelink; then echo "= Exiting: install-time relinking is required" exit 0 fi