Merge pull request #13087 from rasendubi/gdb_multitarget
gdb: add multitarget option
This commit is contained in:
commit
42255f8945
1 changed files with 6 additions and 1 deletions
|
@ -3,6 +3,8 @@
|
|||
, python ? null
|
||||
, guile ? null
|
||||
, target ? null
|
||||
# Support all known targets in one gdb binary.
|
||||
, multitarget ? false
|
||||
# Additional dependencies for GNU/Hurd.
|
||||
, mig ? null, hurd ? null
|
||||
|
||||
|
@ -47,6 +49,7 @@ stdenv.mkDerivation rec {
|
|||
"--with-separate-debug-dir=/run/current-system/sw/lib/debug"
|
||||
]
|
||||
++ optional (target != null) "--target=${target.config}"
|
||||
++ optional multitarget "--enable-targets=all"
|
||||
++ optional (elem stdenv.system platforms.cygwin) "--without-python";
|
||||
|
||||
crossAttrs = {
|
||||
|
@ -54,7 +57,9 @@ stdenv.mkDerivation rec {
|
|||
configureFlags = with stdenv.lib;
|
||||
[ "--with-gmp=${gmp.crossDrv}" "--with-mpfr=${mpfr.crossDrv}" "--with-system-readline"
|
||||
"--with-system-zlib" "--with-expat" "--with-libexpat-prefix=${expat.crossDrv}" "--without-python"
|
||||
] ++ optional (target != null) "--target=${target.config}";
|
||||
]
|
||||
++ optional (target != null) "--target=${target.config}"
|
||||
++ optional multitarget "--enable-targets=all";
|
||||
};
|
||||
|
||||
postInstall =
|
||||
|
|
Loading…
Reference in a new issue