config/debug/strace.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 2006 f15068f8ae3b
child 2733 3362c64f4b6c
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 # strace
     2 
     3 ## depends on ! BACKEND
     4 
     5 choice
     6     bool
     7     prompt "strace version"
     8 # Don't remove next line
     9 # CT_INSERT_VERSION_BELOW
    10 
    11 config STRACE_V_4_5_20
    12     bool
    13     prompt "4.5.20 (EXPERIMENTAL)"
    14     depends on EXPERIMENTAL
    15 
    16 config STRACE_V_4_5_19
    17     bool
    18     prompt "4.5.19"
    19 
    20 config STRACE_V_4_5_18
    21     bool
    22     prompt "4.5.18"
    23 
    24 config STRACE_V_4_5_17
    25     bool
    26     prompt "4.5.17 (OBSOLETE)"
    27     depends on OBSOLETE
    28 
    29 config STRACE_V_4_5_16
    30     bool
    31     prompt "4.5.16 (OBSOLETE)"
    32     depends on OBSOLETE
    33 
    34 config STRACE_V_4_5_15
    35     bool
    36     prompt "4.5.15 (OBSOLETE)"
    37     depends on OBSOLETE
    38 
    39 endchoice
    40 
    41 config STRACE_VERSION
    42     string
    43 # Don't remove next line
    44 # CT_INSERT_VERSION_STRING_BELOW
    45     default "4.5.20" if STRACE_V_4_5_20
    46     default "4.5.19" if STRACE_V_4_5_19
    47     default "4.5.18" if STRACE_V_4_5_18
    48     default "4.5.17" if STRACE_V_4_5_17
    49     default "4.5.16" if STRACE_V_4_5_16
    50     default "4.5.15" if STRACE_V_4_5_15