aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-05-20 16:39:24 -0700
committerMichael Forney <mforney@mforney.org>2019-05-20 16:39:24 -0700
commit732a27073509badbd23395e75f2578513fa9716c (patch)
tree7c0d03c60642deccdcd49eca34711d69e2253071 /configure
parentea6cfe2e8daa30833ebc5fb1e12028b4bfe7f334 (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-xconfigure6
1 files changed, 1 insertions, 5 deletions
diff --git a/configure b/configure
index 01e9145..af9a3f5 100755
--- a/configure
+++ b/configure
@@ -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__",