Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449046 - sys-devel/crossdev - confusion about CFLAGS (at least newlib)
Summary: sys-devel/crossdev - confusion about CFLAGS (at least newlib)
Status: RESOLVED DUPLICATE of bug 448206
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-28 14:05 UTC by Sven
Modified: 2012-12-28 16:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***