I'm using a rather outdated version, so I'm not sure if this has been fixed, but dllwrap seems to ignore the "--mno-cygwin" command line option that is documented in its --help output. "-mno-cygwin" works as expected.
$ dllwrap --version GNU dllwrap 2.15.91 20040725 Copyright 2004 Free Software Foundation, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/