OSDN Git Service

binutils: fix out of tree building with syslex regens
authorvapier <vapier>
Tue, 25 Oct 2011 20:39:40 +0000 (20:39 +0000)
committervapier <vapier>
Tue, 25 Oct 2011 20:39:40 +0000 (20:39 +0000)
commit1968e7b7d2bd83678ca3ffc1dbae40bd2f33646c
treeb12baca6dc670211af6cd9fb80547ab841ee4f17
parent5bce3b13c278a6175d1a9888fcfeb1b55dbf121e
binutils: fix out of tree building with syslex regens

If you take a release tarball (which has pregenerated syslex and sysinfo files
in it), apply some patches which touch syslex.l, and then build the result out
of tree, it will fail.  This is because syslex.l uses sysinfo.h, but the
sysinfo.y file wasn't updated and so it wasn't regenerated (the files are found
in the $srcdir), and the build rule for syslex.c does not use -I$(srcdir) when
it finds a local file.  Simple fix below.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
binutils/ChangeLog
binutils/Makefile.am
binutils/Makefile.in