You can use the same setup as compiling Pd on Windows. We recently did a bunch of work to make this possible and I documented the build setup: https://github.com/pure-data/pure-data/pull/299/files#diff-48d1bc6644af8a5b129735ddf46363c4

It should work with externals + pdlibbuilder and might be good for pdlibbuilder to point to this section in the INSTALL.txt.

On Feb 6, 2018, at 6:02 PM, pd-dev-request@lists.iem.at wrote:

It would be nice if the 'official' tool chain for building externals that
work with vanilla Pd on a Windows machine in 2018 could be explicitly
documented somewhere.

--------
Dan Wilcox