Merge pull request #229289 from wegank/loongarch64-cross-bootstrap

pkgsCross.loongarch64-linux.freshBootstrapTools.bootstrapFiles: fix build
This commit is contained in:
Weijia Wang 2023-05-02 22:39:14 +03:00 committed by GitHub
commit 658f507622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,10 @@ in with pkgs; rec {
};
build =
let
# ${libc.src}/sysdeps/unix/sysv/linux/loongarch/lp64/libnsl.abilist does not exist!
withLibnsl = !stdenv.hostPlatform.isLoongArch64;
in
stdenv.mkDerivation {
name = "stdenv-bootstrap-tools";
@ -69,7 +72,9 @@ in with pkgs; rec {
cp -d ${libc.out}/lib/libdl*.so* $out/lib
cp -d ${libc.out}/lib/librt*.so* $out/lib
cp -d ${libc.out}/lib/libpthread*.so* $out/lib
'' + lib.optionalString withLibnsl ''
cp -d ${libc.out}/lib/libnsl*.so* $out/lib
'' + ''
cp -d ${libc.out}/lib/libutil*.so* $out/lib
cp -d ${libc.out}/lib/libnss*.so* $out/lib
cp -d ${libc.out}/lib/libresolv*.so* $out/lib