rpath_args
Utility script used by RPATH wrapper script; output is a list of arguments to be passed to the wrapped command, one per line
Usage:
rpath_args.py
author: Kenneth Hoste (HPC-UGent) author: Alexander Grund (TU Dresden)
add_rpath_flag(lib_path, rpath_filter, rpath_lib_paths, cmd_args_rpath, ldflag_prefix)
¶
Add an -rpath flag for the given library path if it is valid and not a duplicate. Don't RPATH in empty or relative paths, or paths that are filtered out; linking relative paths via RPATH doesn't make much sense and it can also break the build because it may result in reordering lib paths.
| PARAMETER | DESCRIPTION |
|---|---|
lib_path
|
Library path to process
|
rpath_filter
|
Compiled regex filter for excluding paths
|
rpath_lib_paths
|
List of (path, stat_info) tuples for already processed library paths
|
cmd_args_rpath
|
List of -rpath flags to append to
|
ldflag_prefix
|
Prefix for linker flags (e.g., '-Wl,' or empty)
|
is_new_existing_path(new_path, paths_and_stat)
¶
Check whether specified path exists and is a new path compared to provided list of paths (that surely exist as they were checked before).
| PARAMETER | DESCRIPTION |
|---|---|
new_path
|
The new path to check
|
paths_and_stat
|
List of (path, stat_info) tuples for existing paths
|
| RETURNS | DESCRIPTION |
|---|---|
|
Stat info for the new path if it is a new existing path, None otherwise |