diff options
author | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2011-08-21 15:36:33 +0000 |
---|---|---|
committer | Nicolas Pierron <nicolas.b.pierron@gmail.com> | 2011-08-21 15:36:33 +0000 |
commit | 0c3490e94acf7cb8692fcff86bf0f8e4a39ddcf8 (patch) | |
tree | bab6939ca031f7af8414cdd6e4e21d63592d6b41 /pkgs | |
parent | 4c8bbfe81bc20ccd3c95a9691863cc6ddacc2c25 (diff) | |
download | nixlib-0c3490e94acf7cb8692fcff86bf0f8e4a39ddcf8.tar nixlib-0c3490e94acf7cb8692fcff86bf0f8e4a39ddcf8.tar.gz nixlib-0c3490e94acf7cb8692fcff86bf0f8e4a39ddcf8.tar.bz2 nixlib-0c3490e94acf7cb8692fcff86bf0f8e4a39ddcf8.tar.lz nixlib-0c3490e94acf7cb8692fcff86bf0f8e4a39ddcf8.tar.xz nixlib-0c3490e94acf7cb8692fcff86bf0f8e4a39ddcf8.tar.zst nixlib-0c3490e94acf7cb8692fcff86bf0f8e4a39ddcf8.zip |
Gdb: Add --without-python to cygwin builds.
svn path=/nixpkgs/trunk/; revision=28721
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/misc/gdb/default.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index 4c588295ec5a..c29fcc994e2c 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -39,11 +39,13 @@ stdenv.mkDerivation rec { buildInputs = [ ncurses readline gmp mpfr expat ] ++ stdenv.lib.optional doCheck dejagnu; - configureFlags = + configureFlags = with stdenv.lib; '' --with-gmp=${gmp} --with-mpfr=${mpfr} --with-system-readline --with-expat --with-libexpat-prefix=${expat} --with-python - '' + stdenv.lib.optionalString (target != null) - " --target=${target.config}"; + '' + + optionalString (target != null) " --target=${target.config}" + + optionalString (elem stdenv.system platforms.cygwin) " --without-python" + ; crossAttrs = { # Do not add --with-python here to avoid cross building it. |