[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Patches] Patches to support cross-compile with cygwin host

On Tue, 27 Mar 2012, Ryan Johnson wrote:

> Hi all,
> At the request of the folks at crosstool-ng.org, I'm attaching three small
> patches for eglibc-2.12 that allowed me to bring up an
> x86_64-unknown-linux-gnu toolchain (gcc-4.5.3 and 4.6.1) on both cygwin-1.5
> and 1.7 hosts. I suspect the patches will work for other eglibc versions as
> well, but I haven't tested that.

I don't think conditionals on the build system OS are a good idea; the GNU 
practice is to use feature tests where necessary instead.

I've been gradually working on merging the cross-rpcgen changes to FSF 
glibc; my most recent version, 
<http://sourceware.org/ml/libc-alpha/2012-03/msg00375.html>, disables i18n 
for the cross-rpcgen, which might help with avoiding libintl dependencies 
there (or maybe further i18n disabling is needed as well - you didn't say 
anything about what the actual problems are that your patch is addressing 
or why you chose a particular approach).  Something similar might make 
sense for cross-zic.  (I doubt it makes sense to sync EGLIBC with interim 
versions of the cross-rpcgen patch, rather than waiting for a final 
version to get into FSF glibc and then syncing with that as part of the 
next merge.)

Joseph S. Myers
Patches mailing list