config/debug/gdb.in
author Anthony Foiani <anthony.foiani@gmail.com>
Thu May 19 23:09:43 2011 +0200 (2011-05-19)
changeset 2462 139b85d70b62
parent 2421 4f3f430fc7aa
child 2478 91fb35743a44
permissions -rw-r--r--
complibs/ppl: fix 0.11-0.11.2 to compile with --disable-shared

PPL 0.11 (through 0.11.2) had a small bug where it still tried to build
and test its Java interface even when shared libraries are disabled.
Since that's exactly what ct-ng does, it explodes.

This is the patch from the PPL authors (see final link below).

More information can be found in these messages/threads:

Anthony's initial report and analysis with Yann:
http://www.cygwin.com/ml/crossgcc/2011-05/msg00046.html

Ron Flory hit the same problem:
http://www.cygwin.com/ml/crossgcc/2011-05/msg00054.html

Anthony's report to the ppl-devel list:
http://www.cs.unipr.it/pipermail/ppl-devel/2011-May/017450.html

Roberto's reply with a link to the fix in the PPL git repo:
http://www.cs.unipr.it/pipermail/ppl-devel/2011-May/017455.html

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
     1 # GDB menu
     2 
     3 ## help gdb is the GNU debugger
     4 
     5 source "config/debug/gdb.in.cross"
     6 source "config/debug/gdb.in.native"
     7 source "config/debug/gdb.in.gdbserver"
     8 
     9 if GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
    10 
    11 comment "gdb version"
    12 
    13 config DEBUG_GDB_SHOW_LINARO
    14     bool
    15     prompt "Show Linaro versions (EXPERIMENTAL)"
    16     depends on EXPERIMENTAL
    17     help
    18       Linaro is maintaining some advanced/more stable/experimental versions
    19       of gdb, especially for the ARM architecture.
    20 
    21       Those versions have not been blessed by the gdb community (nor have they
    22       been cursed either!), but they look to be pretty much stable, and even
    23       more stable than the upstream versions. YMMV...
    24 
    25       If you do not know what this Linaro stuff is, then simply say 'n' here,
    26       and rest in peace. OTOH, if you know what you are doing, you will be
    27       able to use and enjoy :-) the Linaro versions by saying 'y' here.
    28 
    29       Linaro: http://www.linaro.org/
    30 
    31 choice
    32     bool
    33     prompt "gdb version"
    34 # Don't remove next line
    35 # CT_INSERT_VERSION_BELOW
    36 
    37 config GDB_V_linaro_7_2_2011_04_0
    38     bool
    39     prompt "linaro-7.2-2011.04-0 (EXPERIMENTAL)"
    40     depends on DEBUG_GDB_SHOW_LINARO
    41     select GDB_7_0_or_later
    42 
    43 config GDB_V_7_2
    44     bool
    45     prompt "7.2 (EXPERIMENTAL)"
    46     depends on EXPERIMENTAL
    47     select GDB_7_0_or_later
    48 
    49 config GDB_V_7_1
    50     bool
    51     prompt "7.1 (EXPERIMENTAL)"
    52     depends on EXPERIMENTAL
    53     select GDB_7_0_or_later
    54 
    55 config GDB_V_7_0_1
    56     bool
    57     prompt "7.0.1 (EXPERIMENTAL)"
    58     depends on EXPERIMENTAL
    59     select GDB_7_0_or_later
    60 
    61 config GDB_V_7_0
    62     bool
    63     prompt "7.0 (EXPERIMENTAL)"
    64     depends on EXPERIMENTAL
    65     select GDB_7_0_or_later
    66 
    67 config GDB_V_6_8
    68     bool
    69     prompt "6.8"
    70 
    71 endchoice
    72 
    73 config GDB_7_0_or_later
    74     bool
    75 
    76 config GDB_VERSION
    77     string
    78 # Don't remove next line
    79 # CT_INSERT_VERSION_STRING_BELOW
    80     default "linaro-7.2-2011.04-0" if GDB_V_linaro_7_2_2011_04_0
    81     default "7.2" if GDB_V_7_2
    82     default "7.1" if GDB_V_7_1
    83     default "7.0.1" if GDB_V_7_0_1
    84     default "7.0" if GDB_V_7_0
    85     default "6.8" if GDB_V_6_8
    86 
    87 endif