From 3b78504a0ccfd48b170ccc38d757c44a7cb17207 Mon Sep 17 00:00:00 2001 From: Ileana Dumitrescu Date: Sat, 29 Jun 2024 15:28:49 +0300 Subject: [PATCH] ltmain: Error message improvement * 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 5221b87f5..633775415 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -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 -- 2.47.2