many distributions have something like a 'switch' command such that an
ordinary user can switch the version of his/her default gcc compiler.
Is there something similar in GenToo?
Many thanks for a hint,
Helmut.
$ gcc-config -h
--
Regards,
Gregory.
Forgive previous post. Didn't read it properly. I'm not aware of any
user switching program but perhaps you can manually select your gcc
profile by using /usr/bin/gcc-x.x.x rather than gcc.
--
Regards,
Gregory.
> > many distributions have something like a 'switch' command such that an
> > ordinary user can switch the version of his/her default gcc compiler.
> >
> > Is there something similar in GenToo?
> >
> > Many thanks for a hint,
>
> $ gcc-config -h
wonko@weird ~ $ gcc-config 3
* gcc-config: Must be root.
Wonko
You could do something like the following:
# Set environment
eval $(gcc-conifg -E <profile>)
# Set library path
export LD_LIBRARY_PATH=$(gcc-config -L <profile)