Martin Storsjö (@mstorsjo) commented about tools/makedep.c:
+ else if (source->file->flags & FLAG_C_CXX) + { + var_cc = arch_make_variable( "CXX", arch ); + var_cflags = arch_make_variable( "CXXFLAGS", arch ); + if (make->external) + strarray_addall( &cflags, remove_warning_flags( extra_cxxflags[arch] )); + else + strarray_addall( &cflags, extra_cxxflags[arch] ); + } else { var_cc = arch_make_variable( "CC", arch ); var_cflags = arch_make_variable( "CFLAGS", arch ); - strarray_addall( &cflags, make->external ? extra_cflags_extlib[arch] : extra_cflags[arch] ); + if (make->external) + strarray_addall( &cflags, remove_warning_flags( extra_cflags[arch] )); If this would be a project that I maintain, I would request that a change like this (removing `extra_cflags_extlib` and changing how the warning flags are handled wrt that) would be split out into a separate patch - it seems like a slightly different change than the plain C++ support.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10273#note_131572