nullsense
nullsense11mo ago

Compile / Build with CGO_ENABLED=0

I would like to run the Makefile target compile (which uses the compile_pipeline target for running the build command) but with CGO_ENABLED=1 instead of CGO_ENABLED=0. Doing so fails to run without any logs to tell me why. Does anyone have insight as to why this might be and how I could fix this?
5 Replies
FFO
FFO11mo ago
Uhm that is a good question, have not looked into this Maybe @adlerhurst has a clue
adlerhurst
adlerhurst11mo ago
hm just ran it localy and it worked for me. can you check if your C environment is configured correctly? e.g. is the c compiler configured? which $(go env CC)
Jim Morrison
Jim Morrison11mo ago
@nullsense following up to see if this is still a challenge you are facing? Thanks in advance!
nullsense
nullsenseOP11mo ago
Thanks everyone! I did indeed figure it out, thank you!
Jim Morrison
Jim Morrison11mo ago
Excellent, happy to hear it! Have a wonderful Wednesday!

Did you find this page helpful?