Please find attached another updated version of the patch. In addition to the previous fixes, this ensures proper handling of the indirect dependencies through libtiff on static builds. Again, I still recommend to switch to pkg-config instead, but the attached patch should fix most of the issues with the current approach. Related MXE ticket: https://github.com/mxe/mxe/pull/2681
Please find attached an updated version of the patch. It fixes some missing quotes around the "$xml2_config" command execution, and keeps the -DLIBXML_STATIC flag if it was set by xml-config --cflags. It also add the missing "Requires.private" and "Libs.private" entries for the *.pc file. While I'd still recommend to switch to pkg-config entirely, removing lots of complexity along the way, the attached patch should fix most of the issues with the current approach. Related MXE ticket: https://git...