Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ld: library not found for -lcrt0.o for python #125

Open
liulhdarks opened this issue Oct 1, 2023 · 0 comments
Open

ld: library not found for -lcrt0.o for python #125

liulhdarks opened this issue Oct 1, 2023 · 0 comments

Comments

@liulhdarks
Copy link

After import "github.com/smacker/go-tree-sitter/python", I cannot compile executable binary file for windows and linux on OSX.
for linux

CGO_ENABLED=1 CC="x86_64-linux-musl-gcc" GOOS=linux GOARCH=amd64 CGO_LDFLAGS="-static" go build -trimpath -ldflags "-s -w -linkmode=external"

for windows

CGO_ENABLED=1 CC="x86_64-w64-mingw32-gcc" GOOS=windows GOARCH=amd64 CGO_LDFLAGS="-static" go build -buildmode=pie -trimpath -ldflags "-s -w"

There is no problem if I just import java or javascript cross-compilation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant