AM_CFLAGS contains cflags required to build the mingw-w64 CRT source code.
They are not intended to compile applications (including those used in
mingw-w64 testsuite). Setting per-target <target>_CFLAGS variable
overwrites the AM_CFLAGS. So for every testcase sets the custom
<target>_CFLAGS variable. This ensures that the testcase would not be
compiled with -D_CRTBLD or -D__MSVCRT_VERSION__=0x600 which is unsuitable
when the mingw-w64 uses the UCRT by default.
---
Should be applied on top of the:
- "crt: Improve LFS 64-bit functions"
- "crt: Improve LFS 64-bit functions (part 2)"
- crt: Fix _*stat32 and _*stat32i64 functions for 64-bit msvcrt.dll builds
---
 mingw-w64-crt/Makefile.am                   | 73 +++++++++++++++++++--
 mingw-w64-crt/testcases/complex/Makefile.am | 50 ++++++++++++++
 2 files changed, 116 insertions(+), 7 deletions(-)

diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am
index 4582a23ecab1..ef5f636cf7ca 100644
--- a/mingw-w64-crt/Makefile.am
+++ b/mingw-w64-crt/Makefile.am
@@ -4433,17 +4433,76 @@ testcase_progs = \
   testcases/t_wreaddir \
   testcases/t_fseeko64
 
-testcases_tstmaincpp_SOURCES = testcases/tstmaincpp.cpp
-testcases_t_trycatch_SOURCES = testcases/t_trycatch.cpp
-testcases_t_intrinc_CFLAGS = -std=c99
+testcaseunicode_progs = \
+  testcases/t_municode \
+  testcases/t_tmain \
+  testcases/t__wstat_all
 
 if ENABLE_TESTS_UNICODE
-  testcase_progs += testcases/t_municode testcases/t_tmain 
testcases/t__wstat_all
-  testcases_t_municode_CFLAGS = -municode
-  testcases_t_tmain_CFLAGS = -municode -D_UNICODE
-  testcases_t__wstat_all = -municode
+  testcase_progs += $(testcaseunicode_progs)
 endif
 
+# Overwrite all CRT specific build flags which are in AM_CFLAGS
+# Setting the target specific *_CFLAGS variable overrides AM_CFLAGS
+testcase_CFLAGS = @ADD_C_CXX_WARNING_FLAGS@ @ADD_C_ONLY_WARNING_FLAGS@
+testcaseunicode_CFLAGS = $(testcase_CFLAGS) -municode
+
+# Every non-unicode test has to set its CFLAGS to $(testcase_CFLAGS)
+testcases_tstmainc_CFLAGS = $(testcase_CFLAGS)
+testcases_tstmaincpp_CFLAGS = $(testcase_CFLAGS)
+testcases_tstmain_sys_xxx_CFLAGS = $(testcase_CFLAGS)
+testcases_t__fstat_all_CFLAGS = $(testcase_CFLAGS)
+testcases_t__stat_all_CFLAGS = $(testcase_CFLAGS)
+testcases_t_aligned_alloc_CFLAGS = $(testcase_CFLAGS)
+testcases_t_ansi_io_CFLAGS = $(testcase_CFLAGS)
+testcases_t_findfirst_CFLAGS = $(testcase_CFLAGS)
+testcases_t_float_CFLAGS = $(testcase_CFLAGS)
+testcases_t_fstat_CFLAGS = $(testcase_CFLAGS)
+testcases_t_intrinc_CFLAGS = $(testcase_CFLAGS)
+testcases_t_imagebase_CFLAGS = $(testcase_CFLAGS)
+testcases_t_lfs_CFLAGS = $(testcase_CFLAGS)
+testcases_t_matherr_CFLAGS = $(testcase_CFLAGS)
+testcases_t_nullptrexception_CFLAGS = $(testcase_CFLAGS)
+testcases_t_readdir_CFLAGS = $(testcase_CFLAGS)
+testcases_t_snprintf_CFLAGS = $(testcase_CFLAGS)
+testcases_t_snprintf0_CFLAGS = $(testcase_CFLAGS)
+testcases_t_snprintf1_CFLAGS = $(testcase_CFLAGS)
+testcases_t_swprintf_CFLAGS = $(testcase_CFLAGS)
+testcases_t_swprintf0_CFLAGS = $(testcase_CFLAGS)
+testcases_t_swprintf1_CFLAGS = $(testcase_CFLAGS)
+testcases_t_snwprintf_CFLAGS = $(testcase_CFLAGS)
+testcases_t_snwprintf0_CFLAGS = $(testcase_CFLAGS)
+testcases_t_snwprintf1_CFLAGS = $(testcase_CFLAGS)
+testcases_t_stprintf_a_CFLAGS = $(testcase_CFLAGS)
+testcases_t_stprintf_u_CFLAGS = $(testcase_CFLAGS)
+testcases_t_stprintf0_a_CFLAGS = $(testcase_CFLAGS)
+testcases_t_stprintf0_u_CFLAGS = $(testcase_CFLAGS)
+testcases_t_stprintf1_a_CFLAGS = $(testcase_CFLAGS)
+testcases_t_stprintf1_u_CFLAGS = $(testcase_CFLAGS)
+testcases_t_setjmp_CFLAGS = $(testcase_CFLAGS)
+testcases_t_sigv_CFLAGS = $(testcase_CFLAGS)
+testcases_t_speed_powl_CFLAGS = $(testcase_CFLAGS)
+testcases_t_stat_CFLAGS = $(testcase_CFLAGS)
+testcases_t_stdint_CFLAGS = $(testcase_CFLAGS)
+testcases_t_time_CFLAGS = $(testcase_CFLAGS)
+testcases_t_tls1_CFLAGS = $(testcase_CFLAGS)
+testcases_t_trycatch_CFLAGS = $(testcase_CFLAGS)
+testcases_t_stat_slash_CFLAGS = $(testcase_CFLAGS)
+testcases_t_vsscanf_CFLAGS = $(testcase_CFLAGS)
+testcases_t_wreaddir_CFLAGS = $(testcase_CFLAGS)
+testcases_t_fseeko64_CFLAGS = $(testcase_CFLAGS)
+
+# Every unicode test has to set its CFLAGS to $(testcaseunicode_CFLAGS)
+testcases_t_municode_CFLAGS = $(testcaseunicode_CFLAGS)
+testcases_t_tmain_CFLAGS = $(testcaseunicode_CFLAGS)
+testcases_t__wstat_all_CFLAGS = $(testcaseunicode_CFLAGS)
+
+testcases_tstmaincpp_SOURCES = testcases/tstmaincpp.cpp
+testcases_t_trycatch_SOURCES = testcases/t_trycatch.cpp
+
+testcases_t_intrinc_CFLAGS += -std=c99
+testcases_t_tmain_CFLAGS += -D_UNICODE
+
 # Do not specify TESTS = check_PROGRAMS, because some TESTS
 # may not be check_PROGRAMS.
 check_LIBRARIES =
diff --git a/mingw-w64-crt/testcases/complex/Makefile.am 
b/mingw-w64-crt/testcases/complex/Makefile.am
index 0664e65b7313..8b11edb449fb 100644
--- a/mingw-w64-crt/testcases/complex/Makefile.am
+++ b/mingw-w64-crt/testcases/complex/Makefile.am
@@ -94,10 +94,13 @@ TESTS += $(newcomplex_tests32)
 # Remove these when completed.
 XFAIL_TESTS += 
 
+tests32_libnewcomplextestsf_a_CFLAGS = $(testcase_CFLAGS)
 tests32_libnewcomplextestsf_a_CPPFLAGS= $(CPPFLAGS32) -D_NEW_COMPLEX_FLOAT=1 
$(complex_inc) $(AM_CPPFLAGS)
 tests32_libnewcomplextestsf_a_SOURCES = $(check_complex_lib_sources)
+tests32_libnewcomplextests_a_CFLAGS = $(testcase_CFLAGS)
 tests32_libnewcomplextests_a_CPPFLAGS= $(CPPFLAGS32) -D_NEW_COMPLEX_DOUBLE=1 
$(complex_inc) $(AM_CPPFLAGS)
 tests32_libnewcomplextests_a_SOURCES = $(check_complex_lib_sources)
+tests32_libnewcomplextestsld_a_CFLAGS = $(testcase_CFLAGS)
 tests32_libnewcomplextestsld_a_CPPFLAGS= $(CPPFLAGS32) 
-D_NEW_COMPLEX_LDOUBLE=1 $(complex_inc) $(AM_CPPFLAGS)
 tests32_libnewcomplextestsld_a_SOURCES = $(check_complex_lib_sources)
 
@@ -130,111 +133,133 @@ newcomplex_tests32 = \
 # the main test program calls all three abi versions of the function being
 # tested.
 tests32_cabs_SOURCES = testcases/complex/main.c
+tests32_cabs_CFLAGS = $(testcase_CFLAGS)
 tests32_cabs_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=cabs $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_cabs_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_cabs_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_cacos_SOURCES = testcases/complex/main.c
+tests32_cacos_CFLAGS = $(testcase_CFLAGS)
 tests32_cacos_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=cacos $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_cacos_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_cacos_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_cacosh_SOURCES = testcases/complex/main.c
+tests32_cacosh_CFLAGS = $(testcase_CFLAGS)
 tests32_cacosh_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=cacosh $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_cacosh_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_cacosh_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_carg_SOURCES = testcases/complex/main.c
+tests32_carg_CFLAGS = $(testcase_CFLAGS)
 tests32_carg_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=carg $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_carg_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_carg_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_casin_SOURCES = testcases/complex/main.c
+tests32_casin_CFLAGS = $(testcase_CFLAGS)
 tests32_casin_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=casin $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_casin_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_casin_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_casinh_SOURCES = testcases/complex/main.c
+tests32_casinh_CFLAGS = $(testcase_CFLAGS)
 tests32_casinh_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=casinh $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_casinh_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_casinh_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_catan_SOURCES = testcases/complex/main.c
+tests32_catan_CFLAGS = $(testcase_CFLAGS)
 tests32_catan_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=catan $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_catan_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_catan_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_catanh_SOURCES = testcases/complex/main.c
+tests32_catanh_CFLAGS = $(testcase_CFLAGS)
 tests32_catanh_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=catanh $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_catanh_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_catanh_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_ccos_SOURCES = testcases/complex/main.c
+tests32_ccos_CFLAGS = $(testcase_CFLAGS)
 tests32_ccos_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=ccos $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_ccos_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_ccos_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_ccosh_SOURCES = testcases/complex/main.c
+tests32_ccosh_CFLAGS = $(testcase_CFLAGS)
 tests32_ccosh_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=ccosh $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_ccosh_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_ccosh_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_cexp_SOURCES = testcases/complex/main.c
+tests32_cexp_CFLAGS = $(testcase_CFLAGS)
 tests32_cexp_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=cexp $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_cexp_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_cexp_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_cimag_SOURCES = testcases/complex/main.c
+tests32_cimag_CFLAGS = $(testcase_CFLAGS)
 tests32_cimag_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=cimag $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_cimag_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_cimag_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_clog_SOURCES = testcases/complex/main.c
+tests32_clog_CFLAGS = $(testcase_CFLAGS)
 tests32_clog_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=clog $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_clog_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_clog_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_conj_SOURCES = testcases/complex/main.c
+tests32_conj_CFLAGS = $(testcase_CFLAGS)
 tests32_conj_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=conj $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_conj_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_conj_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_cpow_SOURCES = testcases/complex/main.c
+tests32_cpow_CFLAGS = $(testcase_CFLAGS)
 tests32_cpow_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=cpow $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_cpow_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_cpow_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_cproj_SOURCES = testcases/complex/main.c
+tests32_cproj_CFLAGS = $(testcase_CFLAGS)
 tests32_cproj_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=cproj $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_cproj_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_cproj_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_creal_SOURCES = testcases/complex/main.c
+tests32_creal_CFLAGS = $(testcase_CFLAGS)
 tests32_creal_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=creal $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_creal_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_creal_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_csin_SOURCES = testcases/complex/main.c
+tests32_csin_CFLAGS = $(testcase_CFLAGS)
 tests32_csin_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=csin $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_csin_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_csin_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_csinh_SOURCES = testcases/complex/main.c
+tests32_csinh_CFLAGS = $(testcase_CFLAGS)
 tests32_csinh_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=csinh $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_csinh_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_csinh_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_csqrt_SOURCES = testcases/complex/main.c
+tests32_csqrt_CFLAGS = $(testcase_CFLAGS)
 tests32_csqrt_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=csqrt $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_csqrt_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_csqrt_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_ctan_SOURCES = testcases/complex/main.c
+tests32_ctan_CFLAGS = $(testcase_CFLAGS)
 tests32_ctan_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=ctan $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_ctan_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_ctan_LDADD = $(newcomplex_test_lib32) $(LDADD)
 
 tests32_ctanh_SOURCES = testcases/complex/main.c
+tests32_ctanh_CFLAGS = $(testcase_CFLAGS)
 tests32_ctanh_CPPFLAGS = $(CPPFLAGS32) -DTESTFUNC=ctanh $(complex_inc) 
$(AM_CPPFLAGS)
 tests32_ctanh_LDFLAGS = $(LDFLAGS32) $(AM_LDFLAGS)
 tests32_ctanh_LDADD = $(newcomplex_test_lib32) $(LDADD)
@@ -260,10 +285,13 @@ check_PROGRAMS += $(newcomplex_tests64)
 TESTS += $(newcomplex_tests64)
 XFAIL_TESTS += 
 
+tests64_libnewcomplextestsf_a_CFLAGS = $(testcase_CFLAGS)
 tests64_libnewcomplextestsf_a_CPPFLAGS= $(CPPFLAGS64) -D_NEW_COMPLEX_FLOAT=1 
$(complex_inc) $(AM_CPPFLAGS)
 tests64_libnewcomplextestsf_a_SOURCES = $(check_complex_lib_sources)
+tests64_libnewcomplextests_a_CFLAGS = $(testcase_CFLAGS)
 tests64_libnewcomplextests_a_CPPFLAGS= $(CPPFLAGS64) -D_NEW_COMPLEX_DOUBLE=1 
$(complex_inc) $(AM_CPPFLAGS)
 tests64_libnewcomplextests_a_SOURCES = $(check_complex_lib_sources)
+tests64_libnewcomplextestsld_a_CFLAGS = $(testcase_CFLAGS)
 tests64_libnewcomplextestsld_a_CPPFLAGS= $(CPPFLAGS64) 
-D_NEW_COMPLEX_LDOUBLE=1 $(complex_inc) $(AM_CPPFLAGS)
 tests64_libnewcomplextestsld_a_SOURCES = $(check_complex_lib_sources)
 
@@ -296,111 +324,133 @@ newcomplex_tests64 = \
 # the main test program calls all three abi versions of the function being
 # tested.
 tests64_cabs_SOURCES = testcases/complex/main.c
+tests64_cabs_CFLAGS = $(testcase_CFLAGS)
 tests64_cabs_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=cabs $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_cabs_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_cabs_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_cacos_SOURCES = testcases/complex/main.c
+tests64_cacos_CFLAGS = $(testcase_CFLAGS)
 tests64_cacos_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=cacos $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_cacos_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_cacos_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_cacosh_SOURCES = testcases/complex/main.c
+tests64_cacosh_CFLAGS = $(testcase_CFLAGS)
 tests64_cacosh_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=cacosh $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_cacosh_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_cacosh_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_carg_SOURCES = testcases/complex/main.c
+tests64_carg_CFLAGS = $(testcase_CFLAGS)
 tests64_carg_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=carg $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_carg_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_carg_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_casin_SOURCES = testcases/complex/main.c
+tests64_casin_CFLAGS = $(testcase_CFLAGS)
 tests64_casin_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=casin $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_casin_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_casin_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_casinh_SOURCES = testcases/complex/main.c
+tests64_casinh_CFLAGS = $(testcase_CFLAGS)
 tests64_casinh_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=casinh $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_casinh_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_casinh_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_catan_SOURCES = testcases/complex/main.c
+tests64_catan_CFLAGS = $(testcase_CFLAGS)
 tests64_catan_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=catan $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_catan_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_catan_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_catanh_SOURCES = testcases/complex/main.c
+tests64_catanh_CFLAGS = $(testcase_CFLAGS)
 tests64_catanh_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=catanh $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_catanh_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_catanh_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_ccos_SOURCES = testcases/complex/main.c
+tests64_ccos_CFLAGS = $(testcase_CFLAGS)
 tests64_ccos_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=ccos $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_ccos_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_ccos_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_ccosh_SOURCES = testcases/complex/main.c
+tests64_ccosh_CFLAGS = $(testcase_CFLAGS)
 tests64_ccosh_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=ccosh $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_ccosh_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_ccosh_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_cexp_SOURCES = testcases/complex/main.c
+tests64_cexp_CFLAGS = $(testcase_CFLAGS)
 tests64_cexp_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=cexp $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_cexp_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_cexp_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_cimag_SOURCES = testcases/complex/main.c
+tests64_cimag_CFLAGS = $(testcase_CFLAGS)
 tests64_cimag_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=cimag $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_cimag_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_cimag_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_clog_SOURCES = testcases/complex/main.c
+tests64_clog_CFLAGS = $(testcase_CFLAGS)
 tests64_clog_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=clog $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_clog_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_clog_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_conj_SOURCES = testcases/complex/main.c
+tests64_conj_CFLAGS = $(testcase_CFLAGS)
 tests64_conj_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=conj $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_conj_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_conj_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_cpow_SOURCES = testcases/complex/main.c
+tests64_cpow_CFLAGS = $(testcase_CFLAGS)
 tests64_cpow_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=cpow $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_cpow_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_cpow_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_cproj_SOURCES = testcases/complex/main.c
+tests64_cproj_CFLAGS = $(testcase_CFLAGS)
 tests64_cproj_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=cproj $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_cproj_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_cproj_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_creal_SOURCES = testcases/complex/main.c
+tests64_creal_CFLAGS = $(testcase_CFLAGS)
 tests64_creal_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=creal $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_creal_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_creal_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_csin_SOURCES = testcases/complex/main.c
+tests64_csin_CFLAGS = $(testcase_CFLAGS)
 tests64_csin_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=csin $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_csin_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_csin_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_csinh_SOURCES = testcases/complex/main.c
+tests64_csinh_CFLAGS = $(testcase_CFLAGS)
 tests64_csinh_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=csinh $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_csinh_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_csinh_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_csqrt_SOURCES = testcases/complex/main.c
+tests64_csqrt_CFLAGS = $(testcase_CFLAGS)
 tests64_csqrt_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=csqrt $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_csqrt_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_csqrt_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_ctan_SOURCES = testcases/complex/main.c
+tests64_ctan_CFLAGS = $(testcase_CFLAGS)
 tests64_ctan_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=ctan $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_ctan_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_ctan_LDADD = $(newcomplex_test_lib64) $(LDADD)
 
 tests64_ctanh_SOURCES = testcases/complex/main.c
+tests64_ctanh_CFLAGS = $(testcase_CFLAGS)
 tests64_ctanh_CPPFLAGS = $(CPPFLAGS64) -DTESTFUNC=ctanh $(complex_inc) 
$(AM_CPPFLAGS)
 tests64_ctanh_LDFLAGS = $(LDFLAGS64) $(AM_LDFLAGS)
 tests64_ctanh_LDADD = $(newcomplex_test_lib64) $(LDADD)
-- 
2.20.1



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to