[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
wint_t in cross building, gnulib failing build.
From: |
Lluís Batlle |
Subject: |
wint_t in cross building, gnulib failing build. |
Date: |
Mon, 23 Nov 2009 19:35:15 +0100 |
Hello,
I'm trying to cross-build gettext, and with my toolchain (gcc 4.3.4
and glibc-2.9 for armv5tel-linux) I have problems, while I don't have
any problem building it not natively.
I found that the gettext-runtime configure has a check like this:
if test "$cross_compiling" = yes; then
gl_cv_func_wcwidth_works="guessing no"
In native builds (where I use the same compiler and glibc version) I
have gl_cv_func_wcwidth_works=yes, and having this defined as 'no'
results in gettext-runtime/gnulib-lib/ use its own 'wchar.h' created
from 'wchar.h.in', and this wchar.h ends up not having wint_t defined
as required in glibc's wchar.h, included through mbchar.h in
gnulib-lib.
I'm going to go on using a cache-file, and setting
gl_cv_func_wcwidth_works=yes there, but I would like to know why this
mbchar build fails for me having no wint_t type defined. Why
cross-compiling the wcwidth function would not work?
Regards,
Lluís.
- wint_t in cross building, gnulib failing build.,
Lluís Batlle <=