-rdynamic passes -export-dynamic to an ELF linker. Windows isn't ELF, so the flag is meaningless under Cygwin.
If you just change the makefile to never use -rdynamic if it detects Cygwin/Windows, all other things being equal, that should fix it for Cygwin, without breaking it on any other platforms.