Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC2 and GCC3 co-existance?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
KillerBunny
n00b
n00b


Joined: 01 Nov 2002
Posts: 5

PostPosted: Sat Jan 11, 2003 4:39 am    Post subject: GCC2 and GCC3 co-existance? Reply with quote

Anyone have a really good way to put GCC2 back on without messing anything up? Basically I need to have it to do some compiles that are going to be distributed as binaries.

If I had to access it by doing 'gcc2' instead of 'gcc' that'd be perfect.
Back to top
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Sat Jan 11, 2003 5:40 am    Post subject: Reply with quote

Code:

haku ~ $ emerge -s gcc-config
Searching...   
[ Results for search key : gcc-config ]
[ Applications found : 1 ]
 
*  sys-devel/gcc-config
      Latest version available: 1.2.7
      Latest version installed: 1.2.7
      Size of downloaded files: 0 kB
      Homepage:    http://www.gentoo.org/
      Description: Utility to change the gcc compiler being used.

haku ~ $ man gcc-config
No manual entry for gcc-config

haku ~ $ /usr/sbin/gcc-config --help
Usage: gcc-config [Option] <CHOST>-<gcc version>
Options:                       
        [--use-old]             
                               
                Use the old profile if one was selected.
                               
        [--use-portage-chost]   
                               
                Only set to given profile if its CHOST is the same as that
                set for portage in /etc/make.conf (or one of other portage
                config files...).
                               
        [--get-current-profile]
                               
                Print current used gcc profile.
                               
        [--list-profiles]       

            Print a list of available profiles.

        [--print-environ]

            Print environment that can be used to setup things for current
                gcc profile, or specified one ...
       
        [--get-bin-path]

                Print path where binaries of given/current profile are located.
       
        [--get-lib-path]

                Print path where libraries of given/current profile are located.

        [--get-stdcxx-incdir]

                Print path to g++ include files of given/current profile.
       

haku ~ $


I'm not sure how it works yet, looking in to it.
Basically it will let you run GCC3.x and GCC2.x on the same system.
_________________
No growth without resistance.
No action without reaction.
No desire without restraint.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Jan 11, 2003 7:27 am    Post subject: Reply with quote

Some more info here.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum