添加编译工具依赖的动态库环境变量
This commit is contained in:
parent
60b3de2159
commit
6b4879fcbd
|
@ -117,5 +117,7 @@ func setCmdEnv(cmd *exec.Cmd, username string) {
|
||||||
if util.OS.IsWindows() {
|
if util.OS.IsWindows() {
|
||||||
// FIXME: for some weird issues on Windows, such as: The requested service provider could not be loaded or initialized.
|
// 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()...)
|
cmd.Env = append(cmd.Env, os.Environ()...)
|
||||||
|
} else {
|
||||||
|
cmd.Env = append(cmd.Env, "LD_LIBRARY_PATH="+os.Getenv("LD_LIBRARY_PATH"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue