Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88147 - gcc-2.95.3-r8 fails to compile because of -mtune
Summary: gcc-2.95.3-r8 fails to compile because of -mtune
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-06 04:50 UTC by Michal Januszewski (RETIRED)
Modified: 2005-04-06 16:29 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 Michal Januszewski (RETIRED) gentoo-dev 2005-04-06 04:50:42 UTC
gcc-2.95.3-r8 fails to compile with messages about '-mtune=i686' not being a valid option. If I'm not mistaken, gcc-2.95.x don't support -mtune for x86, so the C[XX]FLAGS that comes from do_filter_flags() should be additionally filtered. 

When I added:
        CFLAGS="${CFLAGS//mtune/mcpu}"
        CXXFLAGS="${CXXFLAGS//mtune/mcpu}"
at the end of do_filter_flags(), it compiled without any problems.
Comment 1 SpanKY gentoo-dev 2005-04-06 05:43:07 UTC
or we should update the gcc2-flags() func in flag-o-matic
Comment 2 SpanKY gentoo-dev 2005-04-06 16:29:31 UTC
fixed in flag-o-matic