[PATCH] Fix out-of-tree build.

Thierry Reding thierry.reding at avionic-design.de
Wed Mar 16 08:37:20 EDT 2011


* Thomas Graf wrote:
> On Fri, Jan 14, 2011 at 11:38:05AM +0100, Thierry Reding wrote:
> > This patch fixes out-of-tree build, that is, when building with
> > $builddir != $srcdir. In such a case, some generated header files are
> > not found because they live in a different tree and can be fixed by
> > adding the directories to the compiler's include search path.
> 
> What is the use case when building outside of the source tree?

I'm building libnl as part of a custom distribution, which builds outside the
source tree by default for autotools-based packages. This is done primarily
in order to not clutter the source tree with build files, but has other
advantages as well. Allowing the build directory to be removed while keeping
the source tree (with possibly modified sources) around would be one such
advantage.

> I assume you are referring to bison/flex generated header files.

Yes.

Cheers,
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20110316/b9580a71/attachment.sig>


More information about the libnl mailing list