git.iko.soy/typeable/nixpkgs
on master help sign in
musl: make libc -> {ldso,ldd} symlinks relative

Minor touchup while rebuilding things anyway.

commit558f7424f26076e1bb2260f13c04a9eb88127f97 authorWill Dietz <w@wdtz.org> dateSun 11 Mar 2018, 21:00 (9 years ago) parent2d54f8f
1 file changed+8−1
pkgs/os-specific/linux/musl/default.nix+8−1
pkgs/os-specific/linux/musl/default.nix+8−1
@@ -51,6 +51,13 @@ stdenv.mkDerivation rec {
5151 --replace -fno-asynchronous-unwind-tables ""
5252 '';
5353
54+ patches = [
55+ # Minor touchup to build system making dynamic linker symlink relative
56+ (fetchurl {
57+ url = https://raw.githubusercontent.com/openwrt/openwrt/87606e25afac6776d1bbc67ed284434ec5a832b4/toolchain/musl/patches/300-relative.patch;
58+ sha256 = "0hfadrycb60sm6hb6by4ycgaqc9sgrhh42k39v8xpmcvdzxrsq2n";
59+ })
60+ ];
5461 preConfigure = ''
5562 configureFlagsArray+=("--syslibdir=$out/lib")
5663 '';
@@ -80,7 +87,7 @@ stdenv.mkDerivation rec {
8087 mkdir -p $out/bin
8188
8289 # Create 'ldd' symlink, builtin
83− ln -s $out/lib/libc.so $out/bin/ldd
90+ ln -rs $out/lib/libc.so $out/bin/ldd
8491
8592 # (impure) cc wrapper around musl for interactive usuage
8693 for i in musl-gcc musl-clang ld.musl-clang; do