View previous topic :: View next topic |
Author |
Message |
leonchik1976 Guru

Joined: 24 Jan 2010 Posts: 340
|
Posted: Sat Dec 17, 2022 10:51 am Post subject: Switching gcc |
|
|
I have gcc 11 and 12 installed, while 12 is default.
Is is possible to install specific package with gcc 11? |
|
Back to top |
|
 |
alamahant Advocate

Joined: 23 Mar 2019 Posts: 3953
|
Posted: Sat Dec 17, 2022 11:01 am Post subject: |
|
|
For permanent solution create a file
Code: |
/etc/portage/env/gcc11.conf -->>
CC=/usr/bin/gcc-<version>
CXX=/usr/bin/g++-<version>
|
Then append to
Code: |
echo "<full-name-of>/<package> gcc11.conf" >> /etc/portage/package.env
|
for on the go solution
Code: |
eselect gcc list
eselect gcc set <index-of-11>
|
or
Code: |
gcc-config --list-profiles
gcc-config <profile-index-11>
|
If using the on the go method please remember to revert back to gcc12. _________________
 |
|
Back to top |
|
 |
|