diff options
author | Pierre Bourdon <delroth@gmail.com> | 2019-04-17 19:50:02 +0200 |
---|---|---|
committer | Pierre Bourdon <delroth@gmail.com> | 2019-04-17 19:53:53 +0200 |
commit | 03f618d9cfa6d297400de70e592b38daf5939728 (patch) | |
tree | 96ba0fe737f9a2598720c9e2c3e19da5556b3858 /pkgs/development/libraries/glibc | |
parent | d32b5e57609eb6f5214f87d5a95622468289c864 (diff) |
glibc: re-enable stripping in cross builds
References to the host toolchain are leaking through debug symbols in glibc, causing gnu cross-builds to always depend on the host toolchain. The decision to not strip was made in 2012 in order to improve GNU/Hurd support, and I suspect the reasons that justified it back then do not apply anymore in 2019. Closure size before: /nix/store/v5pxj0bgg627hic2khk4d43z6cjp5v7d-hello-2.10-armv7l-unknown-linux-gnueabihf 596.8M After: /nix/store/llp1ncmpar406rc2vhj7g5ix4yqwna3n-hello-2.10-armv7l-unknown-linux-gnueabihf 23.6M
Diffstat (limited to 'pkgs/development/libraries/glibc')
-rw-r--r-- | pkgs/development/libraries/glibc/common.nix | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pkgs/development/libraries/glibc/common.nix b/pkgs/development/libraries/glibc/common.nix index cb4571265af74..33c8e5076daa7 100644 --- a/pkgs/development/libraries/glibc/common.nix +++ b/pkgs/development/libraries/glibc/common.nix @@ -214,10 +214,6 @@ stdenv.mkDerivation ({ // lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform) { preInstall = null; # clobber the native hook - dontStrip = true; - - separateDebugInfo = false; # this is currently broken for crossDrv - # To avoid a dependency on the build system 'bash'. preFixup = '' rm -f $bin/bin/{ldd,tzselect,catchsegv,xtrace} |