You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go tool does not allow for a '$' char in a #cgo comment, which makes passing e.g.
"-Wl,-rpath -Wl,$ORIGIN" to a cgo a bit hard.
What steps will reproduce the problem?
package main
// #include <stdio.h>
// #cgo LDFLAGS: -Wl,-rpath -Wl,$ORIGIN
import "C"
func main() {
C.printf("ok")
}
What is the expected output?
$ go run test.go
ok
What do you see instead?
$ go run test.go
/tmp/test.go: malformed #cgo argument: -Wl,$ORIGIN
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
Ubuntu 13.04
Which version are you using? (run 'go version')
go version devel +52e26bb34741 Sun Aug 04 23:32:40 2013 +0400 linux/amd64
Please provide any additional information below.
A proposed patch.
by rjeczalik:
Attachments:
The text was updated successfully, but these errors were encountered: