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
i was debating whether or not to file a bug about this :)
------------- inherit gcc gcc2_flags ------------- Problem solved.
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 ..
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 ...
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.
This is not important...