Using Package build with a different compiler
We would like to use PackageBuild to build VIRGO software using a different compiler in a non-standard location (e.g. /virgo/InstallArea
). I can easily get it to use the new compiler by updating the PATH
, but the problem comes when linking for libraries which requires changing the LD_LIBRARY_PATH
. The way I have got around this is by updating the LD_LIBRARY_PATH
and adding the following + os.environ["LD_LIBRARY_PATH"]
here: https://git.ligo.org/virgo/virgoapp/PackageBuild/-/blob/master/scripts/build.py#L147.
- os.environ["LD_LIBRARY_PATH"] = os.path.join(package_path, tag, "lib")
+ os.environ["LD_LIBRARY_PATH"] = os.path.join(package_path, tag, "lib") + ":" + os.environ["LD_LIBRARY_PATH"]
This seems to work but I am unsure if this is the best option?
Edited by Rhys Poulton