From 12c0a6351d0c60e95a97f18b92261f76cc75dd85 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 23 Feb 2005 22:01:54 +0000 Subject: [PATCH] * Use `--strip-debug', not `--strip-all', so that we can at least get proper backtraces. Otherwise debugging of Nix binaries is very hard. svn path=/nixpkgs/trunk/; revision=2292 --- pkgs/stdenv/generic/setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 2efc6392c50..471ef9a9e41 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -127,8 +127,8 @@ fi # Strip debug information by default. if test -z "$NIX_STRIP_DEBUG"; then export NIX_STRIP_DEBUG=1 - export NIX_CFLAGS_STRIP="-g0 -Wl,-s" -fi + export NIX_CFLAGS_STRIP="-g0 -Wl,--strip-debug" +fi # Do we know where the store is? This is required for purity checking.