Use -std=c99 only for library

This commit is contained in:
Manuel Pégourié-Gonnard 2015-06-02 16:39:22 +01:00
parent bc6ff23dc6
commit 718593681e

View file

@ -172,7 +172,7 @@ cp "$CONFIG_H" "$CONFIG_BAK"
scripts/config.pl full
scripts/config.pl unset MBEDTLS_NET_C # getaddrinfo() undeclared, etc.
scripts/config.pl set MBEDTLS_NO_PLATFORM_ENTROPY # uses syscall() on GNU/Linux
CC=gcc CFLAGS='-Werror -O0 -std=c99 -pedantic' make
CC=gcc CFLAGS='-Werror -O0 -std=c99 -pedantic' make lib
if uname -a | grep -F x86_64 >/dev/null; then
msg "build: i386, make, gcc" # ~ 30s