cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 732a27073509badbd23395e75f2578513fa9716c
parent ea6cfe2e8daa30833ebc5fb1e12028b4bfe7f334
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 20 May 2019 16:39:24 -0700

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:
Mconfigure | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 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__",