This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygport cross-compiling beta1


On 7/20/2010 9:37 AM, Dave Korn wrote:
> On 20/07/2010 06:26, Charles Wilson wrote:
>> On 7/19/2010 9:55 PM, JonY wrote:
>>>> With NLS you will still have at least partial translations, which is
>>>> better than nothing, no?
>>>>
>>> How about setting up --with-localedir to somewhere version or target
>>> specific?
>>
>> There isn't a '--with-localedir' option.  But...there IS a --localedir
>> one.  How did I miss that?
>>
>> There's still one issue that Yaakov brought up; it's not clear that
>> libintl will actually USE the correct version of the locale files...but
>> some experimentation should answer that question.
> 
>   libintl looks in whatever localedir arg you pass to the bindtextdomain
> function at startup.  In GCC, that's LOCALEDIR which is correctly passed in
> from $(localedir) in the Makefile.  So, it ought to work just fine.

Now I remember.  It's that localedir is not passed down to the
subconfigures.  After using --localedir, here are the strings embedded
in the gcc binary:

$ strings i686-pc-mingw32-gcc-4.5.1.exe | grep locale
/usr/src/devel/cross/mingw/mingw-gcc-4.5.20100701-1/src/gcc-4.5-20100701/configure
--srcdir=/usr/src/devel/cross/mingw/mingw-gcc-4.5.20100701-1/src/gcc-4.5-20100701
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var
--sysconfdir=/etc --datarootdir=/usr/share
--docdir=/usr/share/doc/mingw-gcc --build=i686-pc-cygwin
--host=i686-pc-cygwin --target=i686-pc-mingw32
--with-sysroot=/usr/i686-pc-mingw32/sys-root
--with-build-sysroot=/usr/i686-pc-mingw32/sys-root --disable-multilib
--disable-sjlj-exceptions --enable-lto
--enable-languages=c,c++,fortran,objc,obj-c++ --enable-libgomp
--enable-version-specific-runtime-libs --disable-win32-registry
--with-dwarf2 --localedir=/usr/i686-pc-mingw32/share/locale
/usr/share/locale
setlocale


So, you can see that the (top level) configure settings did specify
localedir, and got recorded.  But...the only other string with 'locale'
in it is "/usr/share/locale"

Oops.

So that's not going to work, without upstream changes in the build, or
local patches.

--
Chuck


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]