Here are a couple of changes I made when bringing up cygwin cross-compilation in nixpkgs.
The "unix" definition change looks similar to what's done on other platforms. The libstdc++ change is also similar to what's done in e.g. eh_alloc.cc. Cygwin needs C++ compiler to build libc, and I suspect this is an unusual configuration. David McFarland (2): libstdc++: fix compilation in freestanding win32 cygwin: use builtin_define_std for unix gcc/config/i386/cygwin.h | 4 +--- libstdc++-v3/libsupc++/atexit_thread.cc | 12 ++++++++++++ libstdc++-v3/libsupc++/unwind-cxx.h | 8 ++++++++ 3 files changed, 21 insertions(+), 3 deletions(-) -- 2.50.1
