Closed SCP002 closed 2 years ago
I don't think it is not possible to do cross-compilation directly. If you really need a compilation environment, it is recommended to use Docker. See https://github.com/golang-design/clipboard/blob/main/Dockerfile as an example.
On attempt to cross-compile a program with clipboard in dependencies from windows to linux amd64:
Gives:
GCC 12.1.0,
gcc -v
output: