summary refs log tree commit diff
path: root/pkgs/development/libraries/libffi
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/libffi
parent3a8af0ddf71b7f36c77ce6768161139eb8487e48 (diff)
downloadnixpkgs-7762934904d6d994bdd70adce6e15398eccf6878.tar
nixpkgs-7762934904d6d994bdd70adce6e15398eccf6878.tar.gz
nixpkgs-7762934904d6d994bdd70adce6e15398eccf6878.tar.bz2
nixpkgs-7762934904d6d994bdd70adce6e15398eccf6878.tar.lz
nixpkgs-7762934904d6d994bdd70adce6e15398eccf6878.tar.xz
nixpkgs-7762934904d6d994bdd70adce6e15398eccf6878.tar.zst
nixpkgs-7762934904d6d994bdd70adce6e15398eccf6878.zip
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/libffi')
-rw-r--r--pkgs/development/libraries/libffi/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix
index 4bf0c05eb28..83f88e1819f 100644
--- a/pkgs/development/libraries/libffi/default.nix
+++ b/pkgs/development/libraries/libffi/default.nix
@@ -1,6 +1,6 @@
 { fetchurl, stdenv }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (rec {
   name = "libffi-3.0.9";
 
   src = fetchurl {
@@ -42,3 +42,10 @@ stdenv.mkDerivation rec {
     platforms = stdenv.lib.platforms.all;
   };
 }
+
+//
+
+# Don't run the native `strip' when cross-compiling.
+(if (stdenv ? cross)
+ then { dontStrip = true; }
+ else { }))