Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 449046

Summary: sys-devel/crossdev - confusion about CFLAGS (at least newlib)
Product: Gentoo Linux Reporter: Sven <sven.koehler>
Component: [OLD] DevelopmentAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sven 2012-12-28 14:05:33 UTC
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?
Comment 1 SpanKY gentoo-dev 2012-12-28 16:45:07 UTC

*** This bug has been marked as a duplicate of bug 448206 ***