diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2017-02-21 14:19:07 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-02-21 14:19:07 +0100 |
commit | 4b7215368ac16b862ee523bdc193e69c174c4942 (patch) | |
tree | 23b797f5e62c48eec63041ba5f645657a25480ac /pkgs/development/libraries/glibc | |
parent | 3d04d470cdd0facb906473a47e8ab04a53351c39 (diff) | |
download | nixpkgs-4b7215368ac16b862ee523bdc193e69c174c4942.tar nixpkgs-4b7215368ac16b862ee523bdc193e69c174c4942.tar.gz nixpkgs-4b7215368ac16b862ee523bdc193e69c174c4942.tar.bz2 nixpkgs-4b7215368ac16b862ee523bdc193e69c174c4942.tar.lz nixpkgs-4b7215368ac16b862ee523bdc193e69c174c4942.tar.xz nixpkgs-4b7215368ac16b862ee523bdc193e69c174c4942.tar.zst nixpkgs-4b7215368ac16b862ee523bdc193e69c174c4942.zip |
glibc: fixup libm.a
Now it's not an actual archive but a linker script, and the absolute paths in there were broken due to moving *.a into $static. Let's fix this up in all *.a in case there are more in future.
Diffstat (limited to 'pkgs/development/libraries/glibc')
-rw-r--r-- | pkgs/development/libraries/glibc/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/libraries/glibc/default.nix b/pkgs/development/libraries/glibc/default.nix index a46f97e0e05..4f9eb2d0714 100644 --- a/pkgs/development/libraries/glibc/default.nix +++ b/pkgs/development/libraries/glibc/default.nix @@ -91,6 +91,9 @@ in mkdir -p $static/lib mv $out/lib/*.a $static/lib mv $static/lib/lib*_nonshared.a $out/lib + # Some of *.a files are linker scripts where moving broke the paths. + sed "/^GROUP/s|$out/lib/lib|$static/lib/lib|g" \ + -i "$static"/lib/*.a # Work around a Nix bug: hard links across outputs cause a build failure. cp $bin/bin/getconf $bin/bin/getconf_ |