debug/gdb: can't build a static native gdb if using GMP/MPFR
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Mar 15 21:44:20 2010 +0100 (2010-03-15)
changeset 1850136a929ec37f
parent 1849 73f76483a389
child 1851 59e178812e8d
debug/gdb: can't build a static native gdb if using GMP/MPFR

It is currently impossible to reliably build static GMP/MPFR libs,
so we can't build a static native gdb using them, obviously.
config/debug/gdb.in.native
     1.1 --- a/config/debug/gdb.in.native	Mon Mar 15 21:42:55 2010 +0100
     1.2 +++ b/config/debug/gdb.in.native	Mon Mar 15 21:44:20 2010 +0100
     1.3 @@ -11,20 +11,13 @@
     1.4  
     1.5  if GDB_NATIVE
     1.6  
     1.7 -config GDB_NATIVE_STATIC
     1.8 -    bool
     1.9 -    prompt "Build a static native gdb"
    1.10 -    default n
    1.11 -    help
    1.12 -      In case you have trouble with dynamic loading of shared libraries,
    1.13 -      you will find that a static gdb comes in handy.
    1.14 -
    1.15  config GDB_NATIVE_USE_GMP_MPFR
    1.16      bool
    1.17      prompt "Use GMP and MPFR"
    1.18      default n
    1.19      select GMP_TARGET
    1.20      select MPFR_TARGET
    1.21 +    select GDB_NATIVE_NO_STATIC
    1.22      help
    1.23        gdb can make use of the GMP and MPFR libraries.
    1.24        
    1.25 @@ -35,4 +28,17 @@
    1.26        Setting this option will force building the GMP and MPFR libraries for
    1.27        the target, and configure the native gdb to use them.
    1.28  
    1.29 +config GDB_NATIVE_NO_STATIC
    1.30 +    bool
    1.31 +    default n
    1.32 +
    1.33 +config GDB_NATIVE_STATIC
    1.34 +    bool
    1.35 +    prompt "Build a static native gdb"
    1.36 +    depends on ! GDB_NATIVE_NO_STATIC
    1.37 +    default n
    1.38 +    help
    1.39 +      In case you have trouble with dynamic loading of shared libraries,
    1.40 +      you will find that a static gdb comes in handy.
    1.41 +
    1.42  endif # GDB_NATIVE