Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174008 - glib and gtk+ strip CFLAGS set in make.conf without even warning
Summary: glib and gtk+ strip CFLAGS set in make.conf without even warning
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-10 09:57 UTC by Piotr Gluszenia Slawinski
Modified: 2007-04-10 20:57 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 Piotr Gluszenia Slawinski 2007-04-10 09:57:45 UTC
i've noticed glib and gtk+ strip CFLAGS set in make.conf without even warning,
which causes trouble on builds where flags like -mregparm=3 and -mpreffered-stack-boundary are used (not to mention reduced fun of tweaking them)

i suggest either merely fixing it (afaik glib and gtk don't use asm code like mplayer, which is difficult to link with custom CFLAGS code, so stripping CFLAGS seem to be mere bug) 
and/or providing warning/USE flags like 'custom-cflags' 


Reproducible: Always

Steps to Reproduce:
1.set your own CFLAGS in make.conf
2.emerge glib
3.watch logs :)

Actual Results:  
CFLAGS get stripped. only -march seem to be preserved

Expected Results:  
warning should be issued (that glib/gtk found 'unsupported' CFLAGS and continuing compilation will cause all apps linked with it to become unstable)
and/or custom USE flag should be present to allow user set his/her own CFLAGS in first place
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-10 10:03:54 UTC
There's absolutely no need to *warn* anyone about dericing their crazy flags to something sane that doesn't break compile. Ricing is not supported.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2007-04-10 20:57:25 UTC
Add to /etc/portage/bashrc:
ALLOWED_FLAGS=$(for FLAGA in ${CFLAGS} ${CXXFLAGS} ${ASFLAGS} ; do echo -n "${FLAGA%%=*} " ; done)

(Wszystko w jednej linii.)