Make symbol export work on MinGW The arcane linker command sequence used by ExtUtils::CBuilder doesn't work with __declspec(dllexport). The best solution I could come up with is to monkey-patch the "format_linker_cmd" method.