From 4b7215368ac16b862ee523bdc193e69c174c4942 Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Tue, 21 Feb 2017 14:19:07 +0100 Subject: 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. --- pkgs/development/libraries/glibc/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs/development/libraries/glibc') 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_ -- cgit 1.4.1