Would it be possible to have a gcc-config like the java-config. This would let the user choose between 2.95.x or 3.x Cheers /Mario
You already have the choise if the projects build tools (./configure && Makefile)are written properly: # CC=gcc-3.0 CXX=g++-3.0 ./configure && make all install
Ok, that will do it. But I thought more of a "complete" solution with path set etc and one didn't have to bother with setting env vars. Well my idea may be unnesessary.
I guess I dont have that a big an issue, except that most people who have both installed, is devs who compile their own projects and the CC and CXX is usually how they change it. Then supposidly gcc-3.1 will be out in a while, and that should fix most of gcc-3.0's problems, so that we can hopefully get a default gcc-3.1 profile. Uhm, maybe I was just rambling above. Biggest problem will be that there will be major changes to both gcc-2.95.3 and gcc-3.0.4 ebuilds, meaning things could really get broken. I will speak to Daniel Robbins, and get his opinion.
And a second thought says to me that if there are new ebuilds, one must compile gcc over again just for an little gcc-config file...
Hi... Strange... I had the gcc-3.2.1 installed. So, I install gcc-2.95.3-r8 and after that the gcc-config. Then I made : # gcc-config --get-current-profile So I made : # gcc-config --use-portage-chost i686-pc-linux-gnu-2.95.3 When I compile the things it compile with gcc2 and works very well. But when I made any command of the portage like: # env-update or: # gcc-config --use-portage-chost i686-pc-linux-gnu-3.2.1 It makes and error on shared files from gcc3. So I modify the ld.so.conf by hand and made the ldconfig, I can came back with my gcc-3.2.1. I think that the gcc-config do not create the profiles well. Why? Thanx a lot... Bernardo S. A. Silva
You do not make much sense. If you want it fixed, post what version gcc-config, and also what the contents of /etc/env.d/05gcc was when it borked.