Unfortunately our platform.h includes all kind of stuff.
CFLAGS, CPPFLAGS etc should override auto-detected variables.

CFLAGS, CPPFLAGS, LDFLAGS are the ones that user sets on the command
line by doing:

./configure CFLAGS=-O3

Thus they should stay as the last ones, overriding all auto-detected
values.