]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
ltmain: Error message improvement
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Sat, 29 Jun 2024 12:28:49 +0000 (15:28 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Fri, 19 Jul 2024 16:31:12 +0000 (19:31 +0300)
* build-aux/ltmain.in: Append argument to error message to make it
  easier to understand, and edit message of each instance where
  run-paths are not absolute to better reflect the issue occurring
  to the user.

build-aux/ltmain.in

index 5221b87f56f45fabeaa522fc5a2173263a50e87d..6337754157494b53db2df107de7cb87fccd99da1 100644 (file)
@@ -4938,7 +4938,7 @@ func_mode_link ()
          case $arg in
          [\\/]* | [A-Za-z]:[\\/]*) ;;
          *)
-           func_fatal_error "only absolute run-paths are allowed"
+           func_fatal_error "argument to -rpath is not absolute: $arg"
            ;;
          esac
          if test rpath = "$prev"; then
@@ -5289,7 +5289,7 @@ func_mode_link ()
          dir=$lt_sysroot$func_stripname_result
          ;;
        *)
-         func_fatal_error "only absolute run-paths are allowed"
+         func_fatal_error "argument ($arg) to '-R' is not an absolute path: $dir"
          ;;
        esac
        case "$xrpath " in