[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-cpio] [PATCH] fix for $(srcdir) != $(objdir)
From: |
Mike Frysinger |
Subject: |
Re: [Bug-cpio] [PATCH] fix for $(srcdir) != $(objdir) |
Date: |
Thu, 27 Dec 2007 14:04:06 -0500 |
User-agent: |
KMail/1.9.7 |
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
signature.asc
Description: This is a digitally signed message part.