Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13093 - gcc-config and /etc/make.conf CFLAGS
Summary: gcc-config and /etc/make.conf CFLAGS
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-02 09:10 UTC by Bernardo S. A. Silva
Modified: 2003-10-26 11:11 UTC (History)
4 users (show)

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 Bernardo S. A. Silva 2003-01-02 09:10:51 UTC
Hi everyone,

 First, the gcc-config script is working perfectly. Great work!
 But when I wanna to use gcc-config to force some ebuild to compile with gcc2
(like mozillla, to work with java plugin), I have to reopen the /etc/make.conf
to change my CFLAGS that are incompatible with it:

 CFLAGS="-march=athlon-xp -mmmx -m3dnow -msse ...etc..." to:
 CFLAGS="-march=i686 ...etc...".

 If the GCC2 profile has a CFLAGS variable that subscribe the /etc/make.conf
variable, or if the /etc/make.conf has two variables like:

 CFLAGS-GCC3=...
 CFLAGS-GCC2=...

 It will be good. But, it is only a sugestion.

   Thanx a lot... Bernardo S. A. Silva
Comment 1 SpanKY gentoo-dev 2003-01-02 10:03:43 UTC
i was debating whether or not to file a bug about this :)
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-02 19:48:14 UTC
-------------
inherit gcc
gcc2_flags
-------------

Problem solved.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-02 19:53:44 UTC
I guess it would be cool if we can pass options to gcc config through portage:

  emerge --gcc-config "--convert-cflags-gcc2 i686-pc-linux-gnu-2.95.3" mozilla

(ok, the --convert-cflags-gcc2 is not there yet ...)

And then ebuild.sh will run just after it sourced /etc/profile.env:

  eval `gcc-config --print-environ --convert-cflags-gcc2 i686-pc-linux-gnu-2.95.3`

Comments ?  Dont know if the form are ok .. 

Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-02 19:55:33 UTC
Yes, im spamming, but I have been contemplating this for a long time.

Nick, if you need me to write a patch, and get these good people to test it,
let me know.  Also, just let me know why will be accepted flags and behavior ...
Comment 5 Bernardo S. A. Silva 2003-01-05 10:39:02 UTC
The convert flags is an good idea. But, when implemented, it is good if it is
transparent. Like an implicit conversion on emerge script or something like that.
Comment 6 Bernardo S. A. Silva 2003-10-26 11:11:24 UTC
This is not important...