how to implement conditional patches?

Robert P. J. Day
Mon Dec 5 12:02:00 GMT 2005

  perhaps i missed it but it doesn't look like there's a mechanism in
crosstool to implement conditional patches.  i'm thinking specifically
of applying an NPTL-related patch to glibc *only* if one selects that
they want to build with NPTL instead of linuxthreads.

  the patch is glibc-5070_all_cross-compile-nptl.patch, which can be
found here:

as i read it, you should apply this patch *only* if you're building
with NPTL, so you can't just toss it into the glibc patches directory
where it will be applied every time.

  my thought is to introduce a patch subdirectory for these kinds of
conditional patches:

		... regular patches ...

and so on.

  you can call the subdirectory whatever you want, since it will be
the job of the crosstool utility to handle checking the build specs
and figuring out what patches to apply.



Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list