This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: Cross Compiling
- To: "Alan Hourihane" <alanh at fairlite dot demon dot co dot uk>
- Subject: RE: Cross Compiling
- From: "Harold Hunt" <huntharo at msu dot edu>
- Date: Wed, 10 Oct 2001 16:22:49 -0400
- Cc: "cygx" <cygwin-xfree at cygwin dot com>
Alan,
> One final thing here. I've fixed 'xkbcomp' so it generates the cygwin
> executable, but also generates the Host's xkbcomp so it can process
> the files. I think this was the last of the build problems with cross
> compiling.
Thanks. I've been trying to fix that problem forever and I was going to ask
you about it yesterday, but I figured it was too difficult or impossible, so
I didn't even bother to ask :) It's great to hear that you just went and
fixed it. :)
There is only one problem, which I am testing a fix for right now. The
problem is that adding 'libs' to xc/config/cf/cross.rules/HostLinkRule
causes problems with xc/lib/X11/util/makekeys and
xc/lib/lbxutil/image/mkg3states because the HostLinkRule for those commands
is passed $(LDLIBS), which is -L/cygwin/i686-pc-cygwin/lib when cross
compiling.
My fix is to add a #if CrossCompiling section for these link rules and to
not pass $(LDLIBS) when cross compiling. I would just remove the $(LDLIBS)
parameter from the HostLinkRule, but there may be some platform that needs
those libraries passed to HostLinkRule. What do you think?
Harold