添加编译工具依赖的动态库环境变量
This commit is contained in:
D 2018-12-30 14:55:39 +08:00 committed by GitHub
commit ce2ae8f97f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -117,5 +117,7 @@ func setCmdEnv(cmd *exec.Cmd, username string) {
if util.OS.IsWindows() {
// FIXME: for some weird issues on Windows, such as: The requested service provider could not be loaded or initialized.
cmd.Env = append(cmd.Env, os.Environ()...)
} else {
cmd.Env = append(cmd.Env, "LD_LIBRARY_PATH="+os.Getenv("LD_LIBRARY_PATH"))
}
}