Message ID | yddei4l73l6.fsf@manam.CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes: >> This libgo patch brings over a patch to the master Go library to inherit >> environment variables in http/cgi. This should fix PR go/48503. > > not really :-) It needs the following supplement to handle Solaris and > IRIX. I'm not only including LD_LIBRARY_PATH (although this would suffice > for the testcase to pass), but also the ABI variants thereof. Thanks. Committed. Ian
diff --git a/libgo/go/http/cgi/host.go b/libgo/go/http/cgi/host.go --- a/libgo/go/http/cgi/host.go +++ b/libgo/go/http/cgi/host.go @@ -36,7 +36,9 @@ var osDefaultInheritEnv = map[string][]s "darwin": []string{"DYLD_LIBRARY_PATH"}, "freebsd": []string{"LD_LIBRARY_PATH"}, "hpux": []string{"LD_LIBRARY_PATH", "SHLIB_PATH"}, + "irix": []string{"LD_LIBRARY_PATH", "LD_LIBRARYN32_PATH", "LD_LIBRARY64_PATH"}, "linux": []string{"LD_LIBRARY_PATH"}, + "solaris": []string{"LD_LIBRARY_PATH", "LD_LIBRARY_PATH_32", "LD_LIBRARY_PATH_64"}, "windows": []string{"SystemRoot", "COMSPEC", "PATHEXT", "WINDIR"}, }