View previous topic :: View next topic |
Author |
Message |
KillerBunny n00b
Joined: 01 Nov 2002 Posts: 5
|
Posted: Sat Jan 11, 2003 4:39 am Post subject: GCC2 and GCC3 co-existance? |
|
|
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 |
|
|
Zu` l33t
Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Sat Jan 11, 2003 5:40 am Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sat Jan 11, 2003 7:27 am Post subject: |
|
|
Some more info here. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|