diff options
author | Jack Lloyd <[email protected]> | 2017-12-28 17:10:32 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-28 17:10:32 -0500 |
commit | 7500ed1eb1ecdb88d154ee1f50030a7e93733dc0 (patch) | |
tree | a5cbfa4e0b2a1127c1a8ebadca266eebaf73affe /src/build-data | |
parent | fb08556ed595223a4c01c27bbf9d694ae98cd500 (diff) |
Hack for building on Cygwin (newlib)
Newlib hides system functions if __STRICT_ANSI__ is defined, as happens
with -std=c++11. To get access to POSIX APIs you must use a -std=gnu
variant. However doing that in the build is kind of painful, it's
easier to selectively undefine the macro.
Diffstat (limited to 'src/build-data')
-rw-r--r-- | src/build-data/cc/gcc.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt index 4a1b1e913..553e71295 100644 --- a/src/build-data/cc/gcc.txt +++ b/src/build-data/cc/gcc.txt @@ -126,4 +126,5 @@ x86_64 -> "-m64" netbsd -> "-D_NETBSD_SOURCE" qnx -> "-fexceptions -D_QNX_SOURCE" +cygwin -> "-U__STRICT_ANSI__" </mach_abi_linking> |