mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 00:33:10 +00:00
b81284ec71
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`. |
||
---|---|---|
.. | ||
ada-modules | ||
androidndk-pkgs | ||
beam-modules | ||
bower-modules/generic | ||
chez-modules | ||
compilers | ||
coq-modules | ||
cuda-modules | ||
dhall-modules | ||
em-modules/generic | ||
embedded | ||
gnuradio-modules | ||
guile-modules | ||
hare-third-party | ||
haskell-modules | ||
idris-modules | ||
interpreters | ||
java-modules | ||
julia-modules | ||
libraries | ||
lisp-modules | ||
lisp-modules-new-obsolete | ||
lisp-modules-obsolete | ||
lua-modules | ||
misc | ||
mobile | ||
node-packages | ||
ocaml-modules | ||
octave-modules | ||
perl-modules | ||
php-packages | ||
python2-modules | ||
python-modules | ||
quickemu | ||
r-modules | ||
rocm-modules/5 | ||
ruby-modules | ||
scheme-modules/scheme-bytestructures | ||
skaware-packages | ||
tools | ||
web |