branch: development commit d8fad26c31d1385d7f44211e69e361db4c795b28 Author: Ileana Dumitrescu <ileanadumitresc...@gmail.com> AuthorDate: Thu Nov 14 20:31:55 2024 +0200
ltmain.in: Upgrade warnings to errors --- build-aux/ltmain.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 8b153aa4..9d891127 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -472,7 +472,7 @@ libtool_parse_options () clean|compile|execute|finish|install|link|relink|uninstall) ;; # Catch anything else as an error - *) func_error "invalid argument for $_G_opt" + *) func_error "invalid argument '$1' for $_G_opt" exit_cmd=exit break ;; @@ -509,8 +509,8 @@ libtool_parse_options () /*) ;; # Catch anything else as an error (relative paths) - *) func_warning "invalid argument '$1' for $_G_opt" - func_warning "absolute paths are required for $_G_opt" + *) func_error "invalid argument '$1' for $_G_opt" + func_error "absolute paths are required for $_G_opt" exit_cmd=exit break ;; @@ -1448,7 +1448,7 @@ func_reorder_shared_lib_cache () # Ensure each directory is an absolute path case $dir in /*) ;; - *) func_warning "Directory '$dir' is not an absolute path" + *) func_error "Directory '$dir' is not an absolute path" exit $EXIT_FAILURE ;; esac # Ensure no trailing slashes @@ -1461,7 +1461,7 @@ func_reorder_shared_lib_cache () preferred_search_directories=$dir fi else - func_warning "Directory '$dir' does not exist" + func_error "Directory '$dir' does not exist" exit $EXIT_FAILURE fi done @@ -1477,7 +1477,7 @@ func_reorder_shared_lib_cache () exit $EXIT_SUCCESS ;; *) - func_warning "--reorder-cache is not supported for host_os=$host_os." + func_error "--reorder-cache is not supported for host_os=$host_os." exit $EXIT_FAILURE ;; esac