@ -1,18 +1,19 @@
{ fetchurl , stdenv , ncurses , readline , gmp , mpfr , expat , texinfo , zlib
, dejagnu , perl , pkgconfig
{ stdenv
# Build time
, fetchurl , pkgconfig , perl , texinfo , setupDebugInfoDirs
# Run time
, ncurses , readline , gmp , mpfr , expat , zlib , dejagnu
, buildPlatform , hostPlatform , targetPlatform
, pythonSupport ? hostPlatform == buildPlatform && ! hostPlatform . isCygwin , python ? null
, guile ? null
# Support all known targets in one gdb binary.
, multitarget ? false
# Additional dependencies for GNU/Hurd.
, mig ? null , hurd ? null
, setupDebugInfoDirs
} :
let
@ -58,10 +59,16 @@ stdenv.mkDerivation rec {
configurePlatforms = [ " b u i l d " " h o s t " ] ++ stdenv . lib . optional ( targetPlatform != hostPlatform ) " t a r g e t " ;
configureFlags = with stdenv . lib ; [
" - - w i t h - g m p = ${ gmp . dev } " " - - w i t h - m p f r = ${ mpfr . dev } " " - - w i t h - s y s t e m - r e a d l i n e "
" - - w i t h - s y s t e m - z l i b " " - - w i t h - e x p a t " " - - w i t h - l i b e x p a t - p r e f i x = ${ expat . dev } "
] ++ stdenv . lib . optional ( ! pythonSupport ) " - - w i t h o u t - p y t h o n "
++ stdenv . lib . optional multitarget " - - e n a b l e - t a r g e t s = a l l " ;
" - - e n a b l e - t a r g e t s = a l l " " - - e n a b l e - 6 4 - b i t - b f d "
" - - d i s a b l e - i n s t a l l - l i b b f d "
" - - d i s a b l e - s h a r e d " " - - e n a b l e - s t a t i c "
" - - w i t h - s y s t e m - z l i b "
" - - w i t h - s y s t e m - r e a d l i n e "
" - - w i t h - g m p = ${ gmp . dev } "
" - - w i t h - m p f r = ${ mpfr . dev } "
" - - w i t h - e x p a t " " - - w i t h - l i b e x p a t - p r e f i x = ${ expat . dev } "
] ++ stdenv . lib . optional ( ! pythonSupport ) " - - w i t h o u t - p y t h o n " ;
postInstall =
'' # R e m o v e I n f o f i l e s a l r e a d y p r o v i d e d b y B i n u t i l s a n d o t h e r p a c k a g e s .