config/debug/duma.in
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Thu Jul 28 22:09:31 2011 +0200 (2011-07-28)
changeset 2573 424fa2092ace
parent 2444 896cb0d36c1a
child 3142 6569f6a9060c
permissions -rw-r--r--
scripts/libc: do not build add-ons by default

Currently, no --enable-add-ons option is passed to libc configure when
"$(do_libc_add_ons_list ,)" is empty, which makes configure automatically search
for present add-ons. In that case, all present add-ons are built, although
no add-on was selected by the user in the config. Moreover, this can make the
configure fail if some non-standard add-ons like eglibc-localedef are present.

This behavior also leads to an inconsistency from a user point of view between
the following cases:
- LIBC_ADDONS_LIST="", LIBC_GLIBC_USE_PORTS=n and THREADS="none" in the config,
which makes "$(do_libc_add_ons_list ,)" return "", so all present add-ons
are built.
- LIBC_ADDONS_LIST="", LIBC_GLIBC_USE_PORTS=n and THREADS!="none" in the
config, which makes "$(do_libc_add_ons_list ,)" return the add-on supporting
the chosen threading implementation, e.g. "nptl", so only this add-on is
built.

This patch disables the building of all add-ons in that case.

It is still possible to build all present add-ons by adding --enable-add-ons to
LIBC_GLIBC_EXTRA_CONFIG_ARRAY.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
     1 # D.U.M.A. - Detect Unintended Memory Access - Memory checker
     2 
     3 ## depends on ! BACKEND
     4 
     5 ## help D.U.M.A. - Detect Unintended Memory Access
     6 ## help A memory bound checker, with additional features.
     7 ## help Formerly known as Electric Fence.
     8 
     9 config DUMA_A
    10     bool
    11     prompt "Build a static library"
    12     default y
    13 
    14 config DUMA_SO
    15     bool
    16     prompt "Build a shared library"
    17     default y if SHARED_LIBS
    18 
    19 choice
    20     bool
    21     prompt "D.U.M.A. version"
    22 # Don't remove next line
    23 # CT_INSERT_VERSION_BELOW
    24 
    25 config DUMA_V_2_5_15
    26     bool
    27     prompt "2_5_15"
    28 
    29 config DUMA_V_2_5_14
    30     bool
    31     prompt "2_5_14 (OBSOLETE)"
    32     depends on OBSOLETE
    33 
    34 config DUMA_V_2_5_12
    35     bool
    36     prompt "2_5_12 (OBSOLETE)"
    37     depends on OBSOLETE
    38 
    39 config DUMA_V_2_5_8
    40     bool
    41     prompt "2_5_8 (OBSOLETE)"
    42     depends on OBSOLETE
    43 
    44 config DUMA_V_2_5_1
    45     bool
    46     prompt "2_5_1 (OBSOLETE)"
    47     depends on OBSOLETE
    48 
    49 endchoice
    50 
    51 config DUMA_VERSION
    52     string
    53 # Don't remove next line
    54 # CT_INSERT_VERSION_STRING_BELOW
    55     default "2_5_15" if DUMA_V_2_5_15
    56     default "2_5_14" if DUMA_V_2_5_14
    57     default "2_5_12" if DUMA_V_2_5_12
    58     default "2_5_8" if DUMA_V_2_5_8
    59     default "2_5_1" if DUMA_V_2_5_1