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
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.10 windows/386
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
Windows 10, 64 bit
What did you do?
#cgo CFLAGS: -I${SRCDIR}/lib #cgo LDFLAGS: -L${SRCDIR}/lib -Wl,-rpath=\$ORIGIN/lib -ltest
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
Compiled go program.
What did you see instead?
go build command-line-arguments: invalid flag in #cgo LDFLAGS: -Wl,-rpath=$ORIGIN/lib
The text was updated successfully, but these errors were encountered:
odeke-em
changed the title
-Wl , -rpath in LDFLAGS throws invalid flag in #cgo LDFLAGS: -Wl,-rpath=$ORIGIN/lib
cmd/cgo: -Wl , -rpath in LDFLAGS throws invalid flag in #cgo LDFLAGS: -Wl,-rpath=$ORIGIN/lib
Feb 18, 2018
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10 windows/386
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?Windows 10, 64 bit
What did you do?
#cgo CFLAGS: -I${SRCDIR}/lib
#cgo LDFLAGS: -L${SRCDIR}/lib -Wl,-rpath=\$ORIGIN/lib -ltest
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
Compiled go program.
What did you see instead?
go build command-line-arguments: invalid flag in #cgo LDFLAGS: -Wl,-rpath=$ORIGIN/lib
The text was updated successfully, but these errors were encountered: