This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


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

RE: Cross Compiling


Alan,

You're right.  I applied the patch and I am doing a test build now.  So far,
so good.

Harold

> -----Original Message-----
> From: cygwin-xfree-owner@sources.redhat.com
> [mailto:cygwin-xfree-owner@sources.redhat.com]On Behalf Of Alan
> Hourihane
> Sent: Wednesday, October 10, 2001 4:51 PM
> To: Harold Hunt
> Cc: cygx
> Subject: Re: Cross Compiling
>
>
> On Wed, Oct 10, 2001 at 04:22:49PM -0400, Harold Hunt wrote:
> > 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?
> >
> Nope. This is the right way.... Modify your host.def again with this
> patch.
>
> Alan.
>
> --- host.def.old	Wed Oct 10 21:49:43 2001
> +++ host.def	Wed Oct 10 21:50:01 2001
> @@ -41,7 +41,7 @@
>  #undef ExtraIncDir
>  #define ExtraIncDir /cygwin/i686-pc-cygwin/include/w32api
>  #undef LdPostLib
> -#define LdPostLib	-L/cygwin/i686-pc-cygwin/lib
> +#define LdPostLib
>  #undef ExtensionOSDefines
>  #define ExtensionOSDefines
>


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