nixpkgs/pkgs/development
Adam Joseph b81284ec71 gcc: link $lib/lib -> $lib/$targetConfig correctly and consistently
When native-compiling, gcc will install libraries into:

  /nix/store/...-$targetConfig-gcc-$version-lib/lib

When cross-compiling, gcc will install libraries into:

  /nix/store/...-$targetConfig-gcc-$version-lib/$targetConfig

When cross-compiling, we intended to create a link from $lib/lib to
$lib/$targetConfig, so that downstream users can always safely
assume that "${lib.getLib stdenv.cc.cc}/lib" is where the gcc
libraries are, regardless of whether `stdenv.cc.cc` is a cross
compiler or a native compiler.

Unfortunately, there were two problems with how we were trying to
create these links:

1. The link would be created only when `enableLibGccOutput==true`

2. The link was being created from the incorrect source
   `$lib/lib/lib` instead of `$lib/lib`.

Both of these mistakes are my fault.  This commit corrects them by
creating the link using `ln -Ts` (which is more predictable) and by
creating the link from `gcc/common/builder.nix` rather than from
`gcc/common/libgcc.nix`.
2024-03-15 18:18:24 +00:00
..
ada-modules
androidndk-pkgs
beam-modules
bower-modules/generic
chez-modules
compilers gcc: link $lib/lib -> $lib/$targetConfig correctly and consistently 2024-03-15 18:18:24 +00:00
coq-modules coqPackages.VplTactic: init at 0.5 2024-03-15 10:24:58 +01:00
cuda-modules
dhall-modules
em-modules/generic
embedded
gnuradio-modules
guile-modules
hare-third-party
haskell-modules
idris-modules
interpreters Merge master into staging-next 2024-03-15 12:01:07 +00:00
java-modules
julia-modules julia.withPackages: fix some artifact builds 2024-03-13 02:17:31 -07:00
libraries Merge staging-next into staging 2024-03-15 12:01:34 +00:00
lisp-modules
lisp-modules-new-obsolete
lisp-modules-obsolete
lua-modules luaPackages.tiktoken_core: init at 0.2.1-1 2024-03-13 18:55:18 +09:00
misc
mobile
node-packages
ocaml-modules
octave-modules
perl-modules
php-packages php81Extensions.phalcon: 5.6.1 -> 5.6.2 2024-03-14 22:32:36 +00:00
python2-modules
python-modules Merge staging-next into staging 2024-03-15 12:01:34 +00:00
quickemu
r-modules
rocm-modules/5
ruby-modules
scheme-modules/scheme-bytestructures
skaware-packages
tools Merge staging-next into staging 2024-03-15 12:01:34 +00:00
web Merge master into staging-next 2024-03-14 18:01:26 +00:00