Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724980 - Provide a stable directory for unqualified symlinks for current compiler. Usefile for USE=-native-symlinks.
Summary: Provide a stable directory for unqualified symlinks for current compiler. Use...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-24 10:04 UTC by Sergei Trofimovich (RETIRED)
Modified: 2020-05-24 10:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2020-05-24 10:04:12 UTC
USE=-native-symlinks (https://wiki.gentoo.org/wiki/Project:Toolchain/use_native_symlinks) provides a way to hide unqualified tools from toolchain to ease detection of hardcoded tools.

It is still useful to have an easy way to run './configure && make' as a user when developing local projects.

PATH="$(gcc-config -B):$PATH" has a few limitations:
- it lacks certain links, like /usr/bin/cc (bug #713214).
- it does not update automatically for current processes when gcc-config swiitches to another profile.

In this bug gcc-config and binutils-config can maintain complete set of symlinks to have native toolchain working that can be usable in PATH.

Something like:
    /usr/lib/gcc-config/current/
    /usr/lib/gcc-config/10.1.0/
    /usr/lib/binutils-config/current/
    /usr/lib/binutils-config/2.34/
CCACHE story around those paths TBD.