💡 增加注释

This commit is contained in:
Liang Ding 2018-12-30 14:57:43 +08:00
parent ce2ae8f97f
commit f86ca5b632
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ func setCmdEnv(cmd *exec.Cmd, username string) {
// 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 {
// 编译链接时找不到依赖的动态库 https://github.com/b3log/wide/issues/352
cmd.Env = append(cmd.Env, "LD_LIBRARY_PATH="+os.Getenv("LD_LIBRARY_PATH"))
}
}