aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-28 17:10:32 -0500
committerJack Lloyd <[email protected]>2017-12-28 17:10:32 -0500
commit7500ed1eb1ecdb88d154ee1f50030a7e93733dc0 (patch)
treea5cbfa4e0b2a1127c1a8ebadca266eebaf73affe /src/build-data
parentfb08556ed595223a4c01c27bbf9d694ae98cd500 (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.txt1
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>