[gobolinux-devel] Cross dependencies

Hisham Muhammad hisham.hm at gmail.com
Mon Dec 25 02:27:00 UTC 2006


On 12/23/06, Lucas C. Villa Real <lucasvr at gobolinux.org> wrote:
> On 12/23/06, Jonas Karlsson <jonka750 at student.liu.se> wrote:
> > > >   GCC 4.1.1 [!cross]
> > > >   GLib [cross,!ppc]
> > > >
> > > > This would indicate that one need to have GLib on the host if cross
> > > > compiling (except if compiling for ppc), and that GCC should be
> > > > ignored if doing a cross compilation.
> > >
> > > Oops, turns out that the syntax is not clear enough. I would have
> > > interpreted the "," as an "or", not and "and". I think "or" is more
> > > useful, or else [arm,ppc] does not make sense.
> > >
> > Yes, or is more useful, if we only are to use one operator. Perhaps
> > introducing another operator for and, if we come to the conclussion
> > that we need one.
>
> Well, we can take the operators as defined in the C language:
>   GLib [cross && !ppc]
>   GCC [arm || sh4]
>
> What do you think?

I think it's overkill. Other distros use "," meaning "or" only and do
fine. By using C-style operators you have to think about precedence,
nesting, etc.

-- Hisham


More information about the gobolinux-devel mailing list