diff options
author | des <des@FreeBSD.org> | 2003-05-01 14:36:27 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-05-01 14:36:27 +0000 |
commit | d147648191012b2ae9e1dc5d8e7e61ba4fa1b195 (patch) | |
tree | 8979b70be7a719d3bcd23783b08b390e83d0d578 /lib/libfetch/Makefile | |
parent | c7b799cc919aa786b000681139a33c9079e9dbf4 (diff) | |
download | FreeBSD-src-d147648191012b2ae9e1dc5d8e7e61ba4fa1b195.zip FreeBSD-src-d147648191012b2ae9e1dc5d8e7e61ba4fa1b195.tar.gz |
Add a mechanism to allow Makefiles to specify the particular C dialect
in which the source code is written. This is controlled by the CSTD
variable, which can have one of the following values:
- "k&r" => -traditional
- "c89" or "c90" => -std=iso9899:1990
- "c94" or "c95" => -std=iso9899:199409
- "c99" => -std=iso9899:1999
The corresponding option is added to CFLAGS regardless of WARNS level.
This also removes -ansi from WARNS level 6, but adds -Wno-long-long to
work around a weird gcc bug (-ansi, which is supposedly equivalent to
-std=iso9899:1990, seems to turn long long warnings off instead of on)
If CSTD is undefined, CFLAGS are unchanged except for the -ansi /
-Wno-long-long change mentioned above for WARNS level 6.
Diffstat (limited to 'lib/libfetch/Makefile')
0 files changed, 0 insertions, 0 deletions