crosstool-ng/scripts/build
Benoît Thébaudeau" bcc636057f 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>
2011-12-14 16:55:22 +01:00
..
arch arch/sh: use endian string in tests 2011-11-20 21:05:36 +01:00
binutils binutils/binutils: fix extra config array variable name 2011-12-12 20:24:05 +01:00
cc cc/gcc: Apply CT_CC_GCC_DISABLE_PCH to do_cc_core. 2011-11-18 11:32:50 +08:00
companion_libs complibs/cloog: auto-reconf for 0.15.10 and later 2011-10-16 15:10:29 +02:00
companion_tools comptools/libtool: chmod files to u+w 2011-03-03 19:32:05 +01:00
debug debug/gdb: add extra config for gdb cross. 2011-11-23 13:15:27 +08:00
kernel kernel/linux: fix missing quote 2011-12-12 21:47:08 +01:00
libc libc/eglibc: fix localedef 2.14 build 2011-12-14 16:55:22 +01:00
test_suite test-suite: apply cleanup pass 2010-05-22 22:04:31 +02:00
companion_tools.sh companion_tools/autoconf: add autoconf tool 2010-01-12 21:09:30 +01:00
debug.sh Simplify the Tools and Debug facilities menu entries: 2008-10-10 14:30:44 +00:00
internals.sh scripts, cc/gcc: do not fail on existing symlinks or build.log 2011-07-12 23:52:24 +02:00
test_suite.sh test-suite: Added new test suite feature (experimental) 2010-05-19 17:53:04 +02:00