On Sat, 23 May 2020 08:05:46 +0200 Michał Górny <mgo...@gentoo.org> wrote:
> On Fri, 2020-05-22 at 22:36 +0100, Sergei Trofimovich wrote: > > 'tc-directly' tracker https://bugs.gentoo.org/243502 tracks > > packages that don't respect users' CC/AR/LD flags. > > > > I added new USE=-native-symlinks mode for gcc-config and > > binutils-config to ease detection of such packages. > > > > Native symlinks are still installed by default. Nothing should > > break for users who use default USE flags. > > > > USE=-native-symlinks removes a bunch of links that most packages > > use by default until are overridden explicitly. Incomplete list is: > > - /lib/cpp > > - /usr/bin/{gcc,cc,g++,c++,...} > > - /usr/bin/{as,ld,ranlib,dwp,...} > > > > The rule of thumb is: if a tool does not have ${CTARGET}- prefix > > it will probably disappear with USE=-native-symlinks. > > Does this list include 'ar' or not? Asking because there's been > a number of false positives reported for 'ar' being used as an archiver > (e.g. to work on .deb packages). USE=-native-symlinks does remove /usr/bin/ar. Full(er) list for binutils is: addr2line ar as c++filt coffdump dlltool dllwrap dwp elfedit gprof ld ld.bfd ld.gold nm objcopy objdump ranlib readelf size srconv strings strip sysdump windmc windres -- Sergei