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
Uhm that is a good question, have not looked into this
Maybe @adlerhurst has a clue
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)
@nullsense following up to see if this is still a challenge you are facing? Thanks in advance!
Thanks everyone! I did indeed figure it out, thank you!
Excellent, happy to hear it! Have a wonderful Wednesday!