]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in: Get rid of hardcode_into_libs=all; use
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Sep 2000 04:00:48 +0000 (04:00 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Sep 2000 04:00:48 +0000 (04:00 +0000)
hardcode_into_libs=yes && shlibpath_overrides_runpath!=yes
instead.
[FreeBSD 3.[01]] (shlibpath_overrides_runpath): Set to no.
* ltmain.in: Likewise.
* tests/build-relink.test, tests/build-relink2.test: Adjust.

ChangeLog
ltconfig.in
ltmain.in
tests/build-relink.test
tests/build-relink2.test

index aa9c1ff8c8a9697c48db64c006b432fbd044f051..134162bb742e2056b6156aac0b3cf84eb4e73d64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2000-09-03  Alexandre Oliva  <aoliva@redhat.com>
 
+       * ltconfig.in: Get rid of hardcode_into_libs=all; use
+       hardcode_into_libs=yes && shlibpath_overrides_runpath!=yes
+       instead.
+       [FreeBSD 3.[01]] (shlibpath_overrides_runpath): Set to no.
+       * ltmain.in: Likewise.
+       * tests/build-relink.test, tests/build-relink2.test: Adjust.
+       
        * libtool.m4: Fix typo I introduced in yesterday's patch.
        
        * libltdl/ltdl.c (lt_dlopen): Set dlname from library_names if
index 86ac4aaee4400b91afd757af6ce03820c3339cb4..45dc7b2b03886a6a84ff25277e03cb4e6a699660 100755 (executable)
@@ -1607,11 +1607,7 @@ freebsd*)
   freebsd2*)
     shlibpath_overrides_runpath=yes
     ;;
-  freebsd3.[01]* | freebsdelf3.[01]*)
-    shlibpath_overrides_runpath=yes
-    hardcode_into_libs=yes
-    ;;
-  *) # from 3.2 on
+  *)
     shlibpath_overrides_runpath=no
     hardcode_into_libs=yes
     ;;
@@ -2086,7 +2082,9 @@ 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" = all; then
+if test "$hardcode_action" = relink ||
+   { test "$hardcode_into_libs" = yes &&
+     test "$shlibpath_overrides_runpath" != yes; }; then
   # Fast installation is not supported
   enable_fast_install=no
 elif test "$shlibpath_overrides_runpath" = yes ||
index 5002ec25ef4139c334d85ab370db21120bb39a29..7f354769b0efb3254820aa5c5ce8ff8c19cab56e 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -1691,7 +1691,9 @@ compiler."
 
        if test "$linkmode,$pass" = "prog,link"; then
          if test -n "$library_names" &&
-            { test "$hardcode_into_libs" != all || test "$alldeplibs" != yes; } &&
+            { 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
@@ -1744,7 +1746,9 @@ compiler."
            need_relink=yes
          fi
          # This is a shared library
-         if test $linkmode = lib && test "$hardcode_into_libs" = all; then
+         if test $linkmode = lib &&
+            test "$hardcode_into_libs" = yes &&
+            test "$shlibpath_overrides_runpath" != yes; then
            # Hardcode the library path.
            # Skip directories that are in the system default run-time
            # search path.
@@ -2786,7 +2790,9 @@ EOF
        fi
 
        # Make a backup of the uninstalled library when relinking
-       if test "$mode" = relink && test "$hardcode_into_libs" = all; then
+       if test "$mode" = relink &&
+          test "$hardcode_into_libs" = yes &&
+          test "$shlibpath_overrides_runpath" != yes; then
          $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
        fi
 
@@ -2805,7 +2811,9 @@ EOF
        IFS="$save_ifs"
 
        # Restore the uninstalled library and exit
-       if test "$mode" = relink && test "$hardcode_into_libs" = all; then
+       if test "$mode" = relink &&
+          test "$hardcode_into_libs" = yes &&
+          test "$shlibpath_overrides_runpath" != yes; then
          $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
          exit 0
        fi
@@ -3372,7 +3380,9 @@ static const void *lt_preloaded_setup() {
        exit 0
       fi
 
-      if test "$hardcode_action" = relink || test "$hardcode_into_libs" = all; then
+      if test "$hardcode_action" = relink ||
+         { test "$hardcode_into_libs" = yes &&
+          test "$shlibpath_overrides_runpath" != yes; }; then
        # Fast installation is not supported
        link_command="$compile_var$compile_command$compile_rpath"
        relink_command="$finalize_var$finalize_command$finalize_rpath"
@@ -3828,7 +3838,8 @@ dlpreopen='$dlprefiles'
 
 # Directory that this library needs to be installed in:
 libdir='$install_libdir'"
-         if test $hardcode_into_libs = all &&
+         if test "$hardcode_into_libs" = yes &&
+            test "$shlibpath_overrides_runpath" != yes &&
             test "$installed" = no && test $need_relink = yes; then
            $echo >> $output "\
 relink_command=\"$relink_command\""
@@ -4039,7 +4050,9 @@ relink_command=\"$relink_command\""
        test "X$dir" = "X$file/" && dir=
        dir="$dir$objdir"
 
-       if test "$hardcode_into_libs" = all && test -n "$relink_command"; then
+       if test "$hardcode_into_libs" = yes &&
+          test "$shlibpath_overrides_runpath" != yes &&
+          test -n "$relink_command"; then
          $echo "$modename: warning: relinking \`$file'" 1>&2
          $show "$relink_command"
          if $run eval "$relink_command"; then :
@@ -4057,7 +4070,9 @@ relink_command=\"$relink_command\""
          shift
 
          srcname="$realname"
-         test "$hardcode_into_libs" = all && test -n "$relink_command" && srcname="$realname"T
+         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.
          $show "$install_prog $dir/$srcname $destdir/$realname"
index 5a59e732ed502506f75e67fe26a36776a9d5533a..5050519e238af872a3b7a10a08285e87df63413b 100755 (executable)
@@ -100,7 +100,8 @@ else
 fi
 
 if test "x$hardcode_action" = xrelink ||
-   test "x$hardcode_into_libs" = xall; then
+   { test "x$hardcode_into_libs" = xyes &&
+     test "x$shlibpath_overrides_runpath" != xyes; }; then
   echo "= Exiting: install-time relinking is required"
   exit 0
 fi
index b31b1541e63e5670b5b191dec49bd3ea5525caeb..c842e5b54aeba090f41f3e7da70526f2bb2a5db2 100755 (executable)
@@ -100,7 +100,8 @@ else
 fi
 
 if test "x$hardcode_action" = xrelink ||
-   test "x$hardcode_into_libs" = xall; then
+   { test "x$hardcode_into_libs" = xyes &&
+     test "x$shlibpath_overrides_runpath" != xyes; }; then
   echo "= Exiting: install-time relinking is required"
   exit 0
 fi