Closed hashworks closed 6 years ago
New security features broke cgo https://github.com/golang/go/issues/23749
You'll need to use an older version of Go for now, since no workaround is available for 1.9.4
Oh, this might be a workaround: export CGO_LDFLAGS_ALLOW=".*\.a";
can't work on this today but will test out soon.
@drewwells You can also remove the -w
from libs/wrap_main.go
, compiling the libs shall emit warnings. But shall compile fine.
I see compile errors on 1.9 and 1.110 after removing -w
I get this with Go v1.9.4 and gcc v7.3.0.
Happens on
go install github.com/wellington/go-libsass
and on compilation when used in my project:go build github.com/wellington/go-libsass/libs: invalid flag in #cgo CPPFLAGS: -w
Linking against system libsass with the
dev
tag works fine.