Created attachment 1826 [details]
Patch to change SHLIB_LD to SHLIB_LINK in winshlib.mk
The linking makefile winshlib.mk references the SHLIB_LD variable rather than SHLIB_LINK like shlib.mk does. This results in the inability to set LDFLAGS on Windows and have it used for linking.
The attached patch changes winshlib.mk to use SHLIB_LINK and fixes the issue.