Re: sim/erc32/Makefile.in patch - was Re: GDB 7.5.91 available for testing

Joel Brobecker
2013-03-13T18:18:11Z

> The sim/erc32 will not build outside the source tree. It is
> missing a -I. to find config.h in the build tree.
>
> mkdir b--gdb
> cd b-gdb
> ../gdb-7.5.91/configure --target=sparc-rtems4.11 \
> --prefix=/home/joel/test-gdb/install/ \
> --enable-sim --enable-sim-hardware \
> --enable-timebase --enable-sim-trace >c.log 2>&1 && \
> make >b.log 2>&1 && \
> make install >i.log 2>&1
>
> Should be enough to reproduce it.

Thanks. Reproduced using configure --target=sparc-elf --enable-sim.

> 2013-03-13 Joel Sherrill <joel.sherrill@oarcorp.com>
>
> * Makefile.in: Include build directory in search path to find
> config.h

After a quick review of the patch, it looks reasonable to me.
But Mike F is the Global Maintainer, so I'll defer to him.

> 2013-03-13 Joel Sherrill <joel.sherrill@oarcorp.com>
>
> * Makefile.in: Include build directory in search path to find
> config.h
>
> Index: sim/erc32/Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/sim/erc32/Makefile.in,v
> retrieving revision 1.12
> diff -u -r1.12 Makefile.in
> --- sim/erc32/Makefile.in 1 Jan 2013 06:41:35 -0000 1.12
> +++ sim/erc32/Makefile.in 13 Mar 2013 14:18:43 -0000
> @@ -45,7 +45,7 @@
> # There is AC_C_BIGENDIAN but it doesn't handle float endianness.
> # [Are int/float endians every different on a sparc?]
> end: $(srcdir)/end.c
> - $(CC_FOR_BUILD) $(srcdir)/end.c -o end
> + $(CC_FOR_BUILD) -I. $(srcdir)/end.c -o end
> end.h: end
> ./end > end.h
>

--
Joel