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

 bin_PROGRAMS=cpio @CPIO_MT_PROG@
 EXTRA_PROGRAMS=mt

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)


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

Reply via email to