diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2018-01-03 17:02:01 +0200 |
---|---|---|
committer | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-12-13 17:07:51 +0100 |
commit | 48f41930a773bdd48b9664b2fc5b1e45d6bc5688 (patch) | |
tree | a4e625bba2dcd95dfb61c760ac14106941fc3add /giscanner/scannermain.py | |
parent | 3d4ed1dbccd3b7cf379fdff263be2af58fd35807 (diff) | |
download | gobject-introspection-48f41930a773bdd48b9664b2fc5b1e45d6bc5688.tar.gz |
giscanner: add a --lib-dirs-envvar option
By default LD_LIBRARY_PATH is set to the list of target library paths;
this breaks down in cross-compilation environment, as we need to run a
native emulation wrapper rather than the target binary itself. This patch
allows exporting those paths to a different environment variable
which can be picked up and used by the wrapper.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r-- | giscanner/scannermain.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 4aeb4172..ca9065b2 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -126,6 +126,9 @@ def _get_option_parser(): parser.add_option("", "--use-ldd-wrapper", action="store", dest="ldd_wrapper", default=None, help="wrapper to use instead of ldd (useful when cross-compiling)") + parser.add_option("", "--lib-dirs-envvar", + action="store", dest="lib_dirs_envvar", default=None, + help="environment variable to write a list of library directories to (for running the transient binary), instead of standard LD_LIBRARY_PATH") parser.add_option("", "--program-arg", action="append", dest="program_args", default=[], help="extra arguments to program") |