gdb: add multitarget option
Multitarget option builds gdb with support for all targets. That's similar to gdb-multiarch package in Ubuntu or gdb with multitarget USE-flag in Gentoo.
This commit is contained in:
parent
81fe3eb13f
commit
bdf89087d9
|
@ -3,6 +3,8 @@
|
||||||
, python ? null
|
, python ? null
|
||||||
, guile ? null
|
, guile ? null
|
||||||
, target ? null
|
, target ? null
|
||||||
|
# Support all known targets in one gdb binary.
|
||||||
|
, multitarget ? false
|
||||||
# Additional dependencies for GNU/Hurd.
|
# Additional dependencies for GNU/Hurd.
|
||||||
, mig ? null, hurd ? null
|
, mig ? null, hurd ? null
|
||||||
|
|
||||||
|
@ -47,6 +49,7 @@ stdenv.mkDerivation rec {
|
||||||
"--with-separate-debug-dir=/run/current-system/sw/lib/debug"
|
"--with-separate-debug-dir=/run/current-system/sw/lib/debug"
|
||||||
]
|
]
|
||||||
++ optional (target != null) "--target=${target.config}"
|
++ optional (target != null) "--target=${target.config}"
|
||||||
|
++ optional multitarget "--enable-targets=all"
|
||||||
++ optional (elem stdenv.system platforms.cygwin) "--without-python";
|
++ optional (elem stdenv.system platforms.cygwin) "--without-python";
|
||||||
|
|
||||||
crossAttrs = {
|
crossAttrs = {
|
||||||
|
@ -54,7 +57,9 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags = with stdenv.lib;
|
configureFlags = with stdenv.lib;
|
||||||
[ "--with-gmp=${gmp.crossDrv}" "--with-mpfr=${mpfr.crossDrv}" "--with-system-readline"
|
[ "--with-gmp=${gmp.crossDrv}" "--with-mpfr=${mpfr.crossDrv}" "--with-system-readline"
|
||||||
"--with-system-zlib" "--with-expat" "--with-libexpat-prefix=${expat.crossDrv}" "--without-python"
|
"--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 =
|
postInstall =
|
||||||
|
|
Loading…
Reference in a new issue