This is a linker flag, so we want to pass it in CMAKE_REQUIRED_FLAGS.
That way, it'll get passed during the link step.
Add some libraries on MinGW and Darwin, which need them to successfully
cdavis5x on Oct 8 2018, 11:51 AM.Authored by
When I do shared builds of libunwind (for mingw), I do get -nodefaultlibs passed, so I'm a little puzzled about why that happens. Aside from that, this change looks sane to me, and doesn't break my build.