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
Cgo linking behaviour has changed from go1.03 to go1.1 such that
#cgo darwin LDFLAGS: libxx.dylib -framework Cocoa
used to work, but now fails with:
ld: warning unexpected dylib (libxx.dylib) on link line
The workaround is a simple change to:
#cgo darwin LDFLAGS: -lxx -framework Cocoa
I would have expected either:
1) a mention in the go1.1 release notes regarding the change in behaviour, or
2) the darwin specific LDFLAGS filter, created as part of issue #5822049 in src/cmd/go/build.go (for -l and -framework), to also filter standalone dylibs.
(OSX 10.8.3, golang 1.1)
The text was updated successfully, but these errors were encountered:
by rustf3:
The text was updated successfully, but these errors were encountered: