Use -std=c99 only for library
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index b1e3bdc..85eac01 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -172,7 +172,7 @@
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