public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] non-root user switch gcc version ?
@ 2011-02-24 11:15 Helmut Jarausch
  2011-02-24 23:20 ` Mike Gilbert
  0 siblings, 1 reply; 4+ messages in thread
From: Helmut Jarausch @ 2011-02-24 11:15 UTC (permalink / raw
  To: gentoo-user

Hi,

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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] non-root user switch gcc version ?
       [not found] <gpHoJ-7dM-1@gated-at.bofh.it>
@ 2011-02-24 11:50 ` Gregory Shearman
  2011-02-24 12:04 ` Gregory Shearman
  1 sibling, 0 replies; 4+ messages in thread
From: Gregory Shearman @ 2011-02-24 11:50 UTC (permalink / raw
  To: gentoo-user

In linux.gentoo.user, you wrote:
> Hi,
>
> 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

-- 
Regards,
Gregory.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] non-root user switch gcc version ?
       [not found] <gpHoJ-7dM-1@gated-at.bofh.it>
  2011-02-24 11:50 ` [gentoo-user] non-root user switch gcc version ? Gregory Shearman
@ 2011-02-24 12:04 ` Gregory Shearman
  1 sibling, 0 replies; 4+ messages in thread
From: Gregory Shearman @ 2011-02-24 12:04 UTC (permalink / raw
  To: gentoo-user

In linux.gentoo.user, you wrote:
> Hi,
>
> 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,

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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] non-root user switch gcc version ?
  2011-02-24 11:15 Helmut Jarausch
@ 2011-02-24 23:20 ` Mike Gilbert
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Gilbert @ 2011-02-24 23:20 UTC (permalink / raw
  To: gentoo-user

On Thu, Feb 24, 2011 at 6:15 AM, Helmut Jarausch
<jarausch@igpm.rwth-aachen.de> wrote:
> Hi,
>
> 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.
>
>

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)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-25  0:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <gpHoJ-7dM-1@gated-at.bofh.it>
2011-02-24 11:50 ` [gentoo-user] non-root user switch gcc version ? Gregory Shearman
2011-02-24 12:04 ` Gregory Shearman
2011-02-24 11:15 Helmut Jarausch
2011-02-24 23:20 ` Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox