glibc: add empty libpthread.a

See https://github.com/NixOS/nixpkgs/pull/133431#discussion_r805338099
This commit is contained in:
Maximilian Bosch 2022-02-27 14:06:23 +01:00
parent 69af73d4b0
commit e110983ed3
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -129,6 +129,7 @@ callPackage ./common.nix { inherit stdenv; } {
ln -sf $out/lib/librt.so.1 $out/lib/librt.so
ln -sf $out/lib/libdl.so.2 $out/lib/libdl.so
ln -sf $out/lib/libutil.so.1 $out/lib/libutil.so
touch $out/lib/libpthread.a
''
# For some reason these aren't stripped otherwise and retain reference
# to bootstrap-tools; on cross-arm this stripping would break objects.