nixpkgs/pkgs/development/compilers/gcc/7
Adam Joseph 63305d00d3 gcc: withoutTargetLibc: build libgcc_s.so
We want a `libgcc_s.so` to be built by the first stage
cross-compiler (withoutTargetLibc), since that is the compiler which
will compile the target libc.

This commit accomplishes that, by making three changes:

1. Replacing the `targetPlatform.libc == "msvcrt" &&` conditional
   with `enableShared`, so that the code which cross-build
   `libgcc_s.so` is used for all cross compilers capable of emitting
   shared libraries.

2. Removing the `targetPlatform == hostPlatform` guard from the code
   which produces the `libgcc` output.

3. Looking for build products in in "lib/${targetPlatform.config}/"
   rather than "lib/", so we will find them when cross compiling.
2023-07-01 13:12:41 -07:00
..
0001-Fix-build-for-glibc-2.31.patch
Added-mcf-thread-model-support-from-mcfgthread.patch
default.nix gcc: withoutTargetLibc: build libgcc_s.so 2023-07-01 13:12:41 -07:00
gcc8-asan-glibc-2.34.patch
riscv-no-relax.patch
riscv-pthread-reentrant.patch