diff options
author | Michael Forney <mforney@mforney.org> | 2019-05-20 16:39:24 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-05-20 16:39:24 -0700 |
commit | 732a27073509badbd23395e75f2578513fa9716c (patch) | |
tree | 7c0d03c60642deccdcd49eca34711d69e2253071 /configure | |
parent | ea6cfe2e8daa30833ebc5fb1e12028b4bfe7f334 (diff) |
Don't pass -std=c11 and -D __STRICT_ANSI__ to cpp by default
This was necessary to prevent glibc from using statement expressions
when we defined __GNUC__, but this was reverted in 0df54a9f.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -81,10 +81,6 @@ case "$target" in gcclibdir=${crtbegin%/*} fi linkflags='"-L", "'$gcclibdir'",' - defines=' - /* prevent glibc from using statement expressions for assert */ - "-D", "__STRICT_ANSI__", -' ;; *-*freebsd*) : ${DEFAULT_DYNAMIC_LINKER:=/libexec/ld-elf.so.1} @@ -129,7 +125,7 @@ cat >config.h <<EOF static char *startfiles[] = {$startfiles}; static char *endfiles[] = {$endfiles}; static char *preprocesscmd[] = { - "$DEFAULT_PREPROCESSOR", "-P", "-std=c11", + "$DEFAULT_PREPROCESSOR", "-P", /* clear preprocessor GNU C version */ "-U", "__GNUC__", |