Replies: 1 comment 1 reply
-
Yes
Magical pragmas like these
It only means that a C compiler was not used to build the executable allowing cross-compilation to be possible again.
No, purego needs to be able to use libc's |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for this amazing library.
When I compile a program that uses purego, I get a dynamic executable:
When I comment purego out of my program, I get a static executable.
Is this expected? If so, how actually does this happen? I thought a program compiled with CGO_ENABLED=0 would never link to external libraries. Finally, is it possible to use purego while producing a static executable?
Beta Was this translation helpful? Give feedback.
All reactions