jbrandwood / v810-gcc

Patches and build scripts to make a GCC4 toolchain for the NEC V810 cpu used in the NEC PC-FX and Nintendo VirtualBoy
15 stars 8 forks source link

Compiling on Linux (Ubuntu variant) #2

Closed HollowedEmpire closed 3 years ago

HollowedEmpire commented 4 years ago

When attempting to build using the build build_compiler.sh on Linux, I'd run into unknown command issues due to the program calls having the Windows flavored ".exe" extension. Using a find and replace to remove the ".exe" extension from calls to programs such as curl allowed the script to work as expected.

Perhaps having variables holding the name of the program with or without the extension depending on the OS could be a good solution for this. Though MSYS2 may possibly not need the .exe extension either, as I've previously used Cygwin and was not required to specify the executable extension when using it. If so, removing the extension altogether would be the simplest approach.

jbrandwood commented 3 years ago

Thank you for the report, this is something that I should fix!

I guess that I didn't think that anyone would use the overall build script on Linux, because I always just use the individual seperate scripts so that I can find and fix errors ... whoops!

jbrandwood commented 3 years ago

Thanks for reporting this, it has finally been fixed. :-)