I'm trying to update my arm toolchains (arm-softfloat-elf and arm-softfloat-eabi) to newlib 2.0. However, compile fails with a messaga that "native" is not a valid value for the "-mtune" option. Well, that's because in my make.conf it says CFLAGS="-O2 -pipe -mtune=native". However, shouldn't crossdev by default set CFLAGS to something sensible? I know I can override CFLAGS manually, either crossdev --env or by editing some files in /etc/portage. Yet, I still worry that the newlib package uses the CFLAGS for the cross-compiles code. On a related matter: Some packages (like gcc) compile code that runs on the host (e.g. the compiler binary) but also cross-compile code (e.g. libstdc++, libgcc) for the target platform. Is they any way to set different CFLAGS for the two?
*** This bug has been marked as a duplicate of bug 448206 ***