New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using linux environment variable in cgo failed #43364
Comments
|
So I can't load library in different folder? It seems not convenient. |
That's what I mean in "2", for example: |
https://golang.org/cmd/cgo/#hdr-Using_cgo_with_the_go_command only ${SRCDIR} can be accept? // #cgo LDFLAGS: -L${SRCDIR}/libs -lfoo |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Using cgo to load a shared library in linux.
src/mylib.c
inc/mylib.h
main.go
Compile shared library
Set the env.
run the code
What did you expect to see?
No environment var is ok
The text was updated successfully, but these errors were encountered: