Rollup merge of #109526 - bzEq:aix-libpath, r=Mark-Simulacrum
LIBPATH is used as dylib's path environment variable on AIX See https://4js.com/online_documentation/fjs-fgl-3.00.05-manual-html/c_fgl_installation_017.html.
This commit is contained in:
commit
7192ef3efd
@ -741,6 +741,9 @@ class RustBuild(object):
|
||||
env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
|
||||
(os.pathsep + env["LIBRARY_PATH"]) \
|
||||
if "LIBRARY_PATH" in env else ""
|
||||
env["LIBPATH"] = os.path.join(self.bin_root(), "lib") + \
|
||||
(os.pathsep + env["LIBPATH"]) \
|
||||
if "LIBPATH" in env else ""
|
||||
|
||||
# Export Stage0 snapshot compiler related env variables
|
||||
build_section = "target.{}".format(self.build)
|
||||
|
@ -12,6 +12,8 @@ pub fn dylib_path_var() -> &'static str {
|
||||
"DYLD_LIBRARY_PATH"
|
||||
} else if cfg!(target_os = "haiku") {
|
||||
"LIBRARY_PATH"
|
||||
} else if cfg!(target_os = "aix") {
|
||||
"LIBPATH"
|
||||
} else {
|
||||
"LD_LIBRARY_PATH"
|
||||
}
|
||||
|
@ -156,6 +156,8 @@ pub fn dylib_env_var() -> &'static str {
|
||||
"DYLD_LIBRARY_PATH"
|
||||
} else if cfg!(target_os = "haiku") {
|
||||
"LIBRARY_PATH"
|
||||
} else if cfg!(target_os = "aix") {
|
||||
"LIBPATH"
|
||||
} else {
|
||||
"LD_LIBRARY_PATH"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user