about summary refs log tree commit diff
path: root/pkgs/development/libraries/libunistring
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-07-01 13:20:12 +0000
committerLudovic Courtès <ludo@gnu.org>2011-07-01 13:20:12 +0000
commit7762934904d6d994bdd70adce6e15398eccf6878 (patch)
tree667651c9b45f42fc02d469c21e12d9d8a32ba151 /pkgs/development/libraries/libunistring
parent3a8af0ddf71b7f36c77ce6768161139eb8487e48 (diff)
BDW-GC, GMP, libffi, libunistring, Readline: Don't use the native `strip'.
Using the native `strip' breaks static libraries when cross-compiling.

svn path=/nixpkgs/trunk/; revision=27572
Diffstat (limited to 'pkgs/development/libraries/libunistring')
-rw-r--r--pkgs/development/libraries/libunistring/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libunistring/default.nix b/pkgs/development/libraries/libunistring/default.nix
index c7e76447e3fd8..590ad64cb40f1 100644
--- a/pkgs/development/libraries/libunistring/default.nix
+++ b/pkgs/development/libraries/libunistring/default.nix
@@ -55,4 +55,11 @@ stdenv.mkDerivation (rec {
 # can't find the dll, it will only create a static library.
 (if (stdenv ? glibc)
  then {}
- else { configureFlags = "--with-libiconv-prefix=${libiconv}"; }))
+ else { configureFlags = "--with-libiconv-prefix=${libiconv}"; })
+
+//
+
+# Don't run the native `strip' when cross-compiling.
+(if (stdenv ? cross)
+ then { dontStrip = true; }
+ else { }))