Open badoet opened 8 years ago
webp use cgo. cgo is disabled in cross compile env.
try this command: GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build main.go
.
do i need to install the cgo
first?
i get this error when trying to run that command
ld: unknown option: --build-id=none
clang: error: linker command failed with exit code 1 (use -v to see invocation)
im compiling using go 1.5.1 on osx yosemite
cgo is a builtin tool.
I think this is a cgo bug in cross compile(clang
is default for osx, not for linux).
any updates?
i get this error
did i miss anything? thank you (: