crt: Split testcases to a separate Makefile.am in the subdirectory
Currently, the global AM_CFLAGS used for building mingw-w64-crt
also applies when trying to build the tests. These flags force
a specific static CRT configuration, while the tests should
test the toolchain's default configuration.
By splitting the tests to a separate Makefile.am in the
subdirectory, the global AM_CFLAGS for building the runtime
files don't affect the testcases.
This fixes building the testcases for e.g. UCRT configurations.
The Makefile.am contents in the subdirectory an exact copy of the
previous snippet, with the "testcases/" prefix removed from paths,
and the "testcases_" prefix removed from variables.
Relevant parts of AM_CFLAGS/AM_CXXFLAGS are retained.
Signed-off-by: Martin Storsjö <martin@martin.st>
4 files changed