Closed petmac closed 2 years ago
How would I try these changes on Windows? You mean WSL? There are still the problems that the makefile doesn't append .exe
when it tries to run the cross-compiled gcc to get its spec-file.
Ah yes, sorry, I forgot about that. Never mind.
If I understand correctly, there are a couple of potential solutions to the problem of missing .exe, which I believe is due to the build process looking for Linux binaries, when it has only built MinGW binaries.
The first is to build natively on Windows, which I expect is an absolute nightmare.
The second is to build what I think is called a "Canadian cross-compiler", which means you build on Linux (or WSL), with host = Windows and target = Amiga, but rather than try to run programs which are not for your machine's architecture, you build things in the correct order so the required programs have just been built:
Again, an absolute nightmare.
Yeah, I just spent 2 hours trying to get the compile running without the workarounds I had previously, and I have now given up. Good enough, I think ;)
Thanks.
I've similarly burned hours trying to get GCC to build for Mac. I haven't yet succeeded.
I haven't updated the Windows instructions in the README as I haven't verified that it works on Windows.
It looks fine for Linux though. I downloaded the artifacts from a previous run without these changes, and a run with these changes, and compared them.
All the executables seem to be the same size, so stripped.
There are a couple of .a files, which now do not get stripped. I think this is the correct behaviour, and we were stripping these unnecessarily.
If you have time, would you be able to try the changes on Windows?