Dont use _XOPEN_SOURCE when building

Apparently it has exactly opposite semantics for glibc and whatever libcs
are used on BSD. What a clusterfuck.
This commit is contained in:
Kovid Goyal
2018-07-28 22:56:18 +05:30
parent f018e1a075
commit 02635d506e
2 changed files with 15 additions and 1 deletions

View File

@@ -181,7 +181,7 @@ def init_env(
sanitize_args = get_sanitize_args(cc, ccver) if sanitize else set()
cppflags = os.environ.get(
'OVERRIDE_CPPFLAGS', (
'-D_XOPEN_SOURCE=700 -D{}DEBUG'
'-D{}DEBUG'
).format(
('' if debug else 'N'),
)