]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Revert build failure on CentOS and Alma Linux (regression 2024-09-26).
authorBruno Haible <bruno@clisp.org>
Wed, 9 Oct 2024 13:57:00 +0000 (15:57 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 9 Oct 2024 14:00:29 +0000 (16:00 +0200)
build-aux/ltmain.sh: Revert libtool commit
0e1b33332429cd578367bd0ad420c065d5caf0ac.

build-aux/ltmain.sh

index def0a431a8fa2bbc316b547fd8efe256e2ecc98a..12d92ace5702aa577bdc694eac19be96f24e7a58 100644 (file)
@@ -6822,12 +6822,10 @@ func_mode_link ()
     xrpath=
     perm_rpath=
     temp_rpath=
-    temp_rpath_tail=
     thread_safe=no
     vinfo=
     vinfo_number=no
     weak_libs=
-    rpath_arg=
     single_module=$wl-single_module
     func_infer_tag $base_compile
 
@@ -7746,20 +7744,8 @@ func_mode_link ()
 
       # Now actually substitute the argument into the commands.
       if test -n "$arg"; then
-       if test -n "$rpath_arg"; then
-          func_append finalize_rpath " ${arg##*,}"
-         unset rpath_arg
-       else
-         case $arg in
-          -Wl,-rpath,*)
-           func_append finalize_rpath " ${arg##*,}";;
-          -Wl,-rpath)
-           rpath_arg=1;;
-          *)
-            func_append compile_command " $arg"
-           func_append finalize_command " $arg"
-         esac
-        fi
+       func_append compile_command " $arg"
+       func_append finalize_command " $arg"
       fi
     done # argument parsing loop
 
@@ -8410,10 +8396,7 @@ func_mode_link ()
              # Make sure the rpath contains only unique directories.
              case $temp_rpath: in
              *"$absdir:"*) ;;
-              *) case $absdir in
-                 "$progdir/"*) func_append temp_rpath "$absdir:" ;;
-                 *)            func_append temp_rpath_tail "$absdir:" ;;
-                 esac
+             *) func_append temp_rpath "$absdir:" ;;
              esac
            fi
 
@@ -8425,9 +8408,7 @@ func_mode_link ()
            *)
              case "$compile_rpath " in
              *" $absdir "*) ;;
-             *) case $absdir in
-                 "$progdir/"*) func_append compile_rpath " $absdir" ;;
-                esac
+             *) func_append compile_rpath " $absdir" ;;
              esac
              ;;
            esac
@@ -8501,9 +8482,7 @@ func_mode_link ()
            *)
              case "$compile_rpath " in
              *" $absdir "*) ;;
-             *) case $absdir in
-                 "$progdir/"*) func_append compile_rpath " $absdir" ;;
-                esac
+             *) func_append compile_rpath " $absdir" ;;
              esac
              ;;
            esac
@@ -8864,8 +8843,6 @@ func_mode_link ()
          fi # link_all_deplibs != no
        fi # linkmode = lib
       done # for deplib in $libs
-
-      func_append temp_rpath "$temp_rpath_tail"
       if test link = "$pass"; then
        if test prog = "$linkmode"; then
          compile_deplibs="$new_inherited_linker_flags $compile_deplibs"