rpath_args
Utility script used by RPATH wrapper script; output is statements that define the following environment variables * $CMD_ARGS: new list of command line arguments to pass
Usage:
rpath_args.py
author: Kenneth Hoste (HPC-UGent)
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 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)
¶
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
|
The list of existing paths
|