Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41322 - gcc-3.3.2-r7 fails to compile due to improper CFLAG adjustment in ebuild
Summary: gcc-3.3.2-r7 fails to compile due to improper CFLAG adjustment in ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-11 20:14 UTC by James Lademann
Modified: 2004-02-12 09:49 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 James Lademann 2004-02-11 20:14:32 UTC
gcc-3.3.2-r7 fails to compile due to improper CFLAG adjustment in ebuild.  When using -Os in CFLAGS the flag is rewriten to -O2s (or something similar) which causes gcc to fail.  Changing:
export CFLAGS="$(echo "${CFLAGS}" | sed -e 's|-O[0123456789]\?|-O2|g')"
to
export CFLAGS="$(echo "${CFLAGS}" | sed -e 's|-O[0123456789s]\?|-O2|g')"
(and the same for CXXFLAGS etc.) worked ok for me.

For reference my CFLAGS are:
CFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer"

Reproducible: Always
Steps to Reproduce:
1.  Use -Os in CFLAGS
2.  Compile gcc-3.3.2-r7
3.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-12 09:49:14 UTC
Missed that one, thanks.  Changed it to '[0-9s]'.