> What libc are you using? On glibc, these macros shouldn’t get
redefined.
My standard C library for this setup is uClibc.
> Basically, you shouldn’t expect -Werror to work on non-GNU systems.
Is it possible to switch off -Werror for non-glibc systems, for
example, on autoconf/automake/configure stage?
I'm currently using the following sed commands before running autoreconf:
sed -i 's/CFLAGS="${CFLAGS} -Werror"/##CFLAGS="${CFLAGS} -Werror"/'
./configure.ac
sed -i 's/POTENTIAL_GCC_CFLAGS="${POTENTIAL_GCC_CFLAGS}
-Werror"/##POTENTIAL_GCC_CFLAGS="${POTENTIAL_GCC_CFLAGS} -Werror"/'
./configure.ac