config/debug/duma.in
author "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
Wed Dec 14 16:55:22 2011 +0100 (2011-12-14)
branch1.13
changeset 2848 1ff89596dab0
parent 2444 896cb0d36c1a
child 3142 6569f6a9060c
permissions -rw-r--r--
libc/eglibc: fix localedef 2.14 build

The localedef of eglibc 2.14 requires NOT_IN_libc to be defined in order to
compile intl/l10nflist.c.

This is because localedef is built separately from eglibc and uses some parts of
eglibc that don't compile in standalone without this preprocessor definition.

This fixes the following error:

[ALL ] gcc -g -O2 -DNO_SYSCONF -DNO_UNCOMPRESS
-DLOCALE_PATH='"/usr/lib/locale:/usr/share/i18n"'
-DLOCALEDIR='"/usr/lib/locale"' -DLOCALE_ALIAS_PATH='"/usr/share/locale"'
-DCHARMAP_PATH='"/usr/share/i18n/charmaps"'
-DREPERTOIREMAP_PATH='"/usr/share/i18n/repertoiremaps"'
-DLOCSRCDIR='"/usr/share/i18n/locales"' -Iglibc/locale/programs -Iglibc/locale
-I/<snip>/.build/src/eglibc-localedef-2_14/include
-I/<snip>/.build/src/eglibc-localedef-2_14 -I.
-include /<snip>/.build/src/eglibc-localedef-2_14/include/always.h -Wall
-Wno-format -c -o locarchive.o glibc/locale/programs/locarchive.c
[ALL ] glibc/locale/programs/locarchive.c: In function 'enlarge_archive':
[ALL ] glibc/locale/programs/locarchive.c:303:21: warning: variable
'oldlocrectab' set but not used [-Wunused-but-set-variable]
[ALL ] In file included from glibc/locale/programs/locarchive.c:651:0:
[ALL ] glibc/locale/programs/../../intl/l10nflist.c: In function
'_nl_normalize_codeset':
[ERROR] glibc/locale/programs/../../intl/l10nflist.c:342:9: error:
'_nl_C_locobj_ptr' undeclared (first use in this function)
[ALL ] glibc/locale/programs/../../intl/l10nflist.c:342:9: note: each
undeclared identifier is reported only once for each function it appears in
[ALL ] glibc/locale/programs/locarchive.c: In function
'add_locales_to_archive':
[ALL ] glibc/locale/programs/locarchive.c:1450:7: warning: passing argument
1 of '__xpg_basename' discards 'const' qualifier from pointer target type
[enabled by default]
[ALL ] /usr/include/libgen.h:35:14: note: expected 'char *' but argument is
of type 'const char *'
[ERROR] make[1]: *** [locarchive.o] Error 1

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