From 4b7215368ac16b862ee523bdc193e69c174c4942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 21 Feb 2017 14:19:07 +0100 Subject: [PATCH] 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(+) diff --git a/pkgs/development/libraries/glibc/default.nix b/pkgs/development/libraries/glibc/default.nix index a46f97e0e051..4f9eb2d0714f 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_