Skip to content

Commit

Permalink
make-bootstrap-tools: produce libatomic on riscv platform
Browse files Browse the repository at this point in the history
  • Loading branch information
oxalica committed Nov 25, 2021
1 parent 3b069a2 commit fc3ea54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/stdenv/linux/make-bootstrap-tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ in with pkgs; rec {
# pkgs/stdenv/linux/default.nix for the details.
cp -d ${isl_0_20.out}/lib/libisl*.so* $out/lib
'' + lib.optionalString (stdenv.hostPlatform.isRiscV) ''
# libatomic is required on RiscV platform for C/C++ atomics and pthread
# even though they may be translated into native instructions.
cp -d ${bootGCC.out}/lib/libatomic.a* $out/lib
'' + ''
cp -d ${bzip2.out}/lib/libbz2.so* $out/lib
Expand Down

0 comments on commit fc3ea54

Please sign in to comment.