summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-02-24 02:22:57 +0100
committeraszlig <aszlig@redmoonstudios.org>2014-02-24 07:26:23 +0100
commit92c59d37a7e7567567e5e84c7747818850e69d0b (patch)
treeda7fda4f71fbec348e8b5d09ce6203cb1ba90112 /pkgs/build-support
parent60a2fc1fec78f2653b3ef71b24ec8ae72b99d38b (diff)
downloadnixlib-92c59d37a7e7567567e5e84c7747818850e69d0b.tar
nixlib-92c59d37a7e7567567e5e84c7747818850e69d0b.tar.gz
nixlib-92c59d37a7e7567567e5e84c7747818850e69d0b.tar.bz2
nixlib-92c59d37a7e7567567e5e84c7747818850e69d0b.tar.lz
nixlib-92c59d37a7e7567567e5e84c7747818850e69d0b.tar.xz
nixlib-92c59d37a7e7567567e5e84c7747818850e69d0b.tar.zst
nixlib-92c59d37a7e7567567e5e84c7747818850e69d0b.zip
gcc-cross-wrapper: Enable dontStrip in setup hook.
At least for x86_64-w64-mingw32, it doesn't make sense to use the native
strip tool for stripping of symbols. To the contrary it results in
unusable archive files.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/gcc-cross-wrapper/setup-hook.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/build-support/gcc-cross-wrapper/setup-hook.sh b/pkgs/build-support/gcc-cross-wrapper/setup-hook.sh
index a7be09283ee0..433d36ced434 100644
--- a/pkgs/build-support/gcc-cross-wrapper/setup-hook.sh
+++ b/pkgs/build-support/gcc-cross-wrapper/setup-hook.sh
@@ -75,6 +75,9 @@ fi
 # native compilations.
 doCheck=""
 
+# Don't strip foreign binaries with native "strip" tool.
+dontStrip=1
+
 # Add the output as an rpath.
 if test "$NIX_NO_SELF_RPATH" != "1"; then
     export NIX_CROSS_LDFLAGS="-rpath $out/lib -rpath-link $out/lib $NIX_CROSS_LDFLAGS"