On Thu, Dec 19, 2019 at 03:47:13PM -0600, Neal Gompa wrote:
> == Release Notes ==
> The user /usr/bin/cc and /usr/bin/c++ symlinks are now managed by
> update-alternatives. If you would like to change these symlinks to
> point to another compiler, like clang, for example, you can use these
> commands:
>
> `update-alternatives --set cc /usr/bin/clang`
>
> `update-alternatives --set c++ /usr/bin/clang++`
>
I don't know if I want *more* alternatives usage in Fedora. I like the
fact that a basic buildroot is generally supposed to work without
scriptlets... On the other hand, I think we're already using
alternatives for ld...
Aside from making it possible to swap the system compiler with
alternatives, what benefit do we get? Are there other, less script-y
approaches that we could use?
I'm not sure that the benefits are really that big. For most cases, instead
of setting alternatives, the obvious solution would be to set $CC. Can you
expand a bit on why alternatives, which is effectively a global setting,
is preferred to a local override?
Zbyszek