alexfru / SmallerC

Simple C compiler
BSD 2-Clause "Simplified" License
1.35k stars 155 forks source link

Default output filename "aout.exe" is not detected by autoconf #39

Closed winspool closed 3 months ago

winspool commented 10 months ago

The default filename for dos or windows targets is "aout.exe"

That name is not detected by autoconf, and I think, that SmallerC is far too small that autoconf would change that.

Easiest fix would be to use a default name, which is already detected by autoconf:

The possible output files:

ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

Since the sourcefile has the name "conftest.c", i suggest to create a "conftest.exe" or fall back to "a.exe" ("a_out.exe" is also detected, but not removed before the test or after the test)