This patch to the libbacktrace Makefile.am adds some more -I options, so that it can find unwind.h under more conditions. This splits the -I options in AM_CPPFLAGS, which is where they belong anyhow. Bootstrapped and ran libbacktrace tests on x86_64-unknown-linux-gnu. Committed to mainline.
Ian 2012-09-18 Ian Lance Taylor <i...@google.com> PR bootstrap/54623 * Makefile.am (AM_CPPFLAGS): Define. (AM_CFLAGS): Remove -I options. * Makefile.in: Rebuild.
Index: Makefile.am =================================================================== --- Makefile.am (revision 191432) +++ Makefile.am (working copy) @@ -31,7 +31,10 @@ ACLOCAL_AMFLAGS = -I .. -I ../config -AM_CFLAGS = $(WARN_FLAGS) $(PIC_FLAG) -I $(srcdir)/../include -I ../libgcc +AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \ + -I ../libgcc -I ../gcc/include -I $(MULTIBUILDTOP)../../gcc/include + +AM_CFLAGS = $(WARN_FLAGS) $(PIC_FLAG) noinst_LTLIBRARIES = libbacktrace.la