On Wednesday 26 December 2007, Robert Millan wrote:
> This fixes a build problem when $(objdir) != $(srcdir).  The problem
> happens on platforms that lack <alloca.h> (and maybe others).  When
> system-wide alloca.h is not found, the build system generates
> $(objdir)/lib/alloca.h dynamicaly to cope with that.  However, our include
> list has $(srcdir)/lib not $(objdir)/lib, making <alloca.h> unfindable.
>
> diff -ur cpio-2.9/src/Makefile.am cpio-2.9.srcdir/src/Makefile.am
> --- cpio-2.9/src/Makefile.am    2007-06-27 16:00:13.000000000 +0200
> +++ cpio-2.9.srcdir/src/Makefile.am     2007-12-26 10:24:53.000000000 +0100
> @@ -16,7 +16,7 @@
>  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
>  # 02110-1301 USA.
>
> -INCLUDES=-I. -I.. -I$(top_srcdir)/lib
> +INCLUDES=-I. -I.. -I$(top_srcdir)/lib -I../lib

should be explicit then ... -I$(top_builddir)/lib
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Bug-cpio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cpio

Reply via email to