This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: sim/erc32/Makefile.in patch - was Re: GDB 7.5.91 available for testing
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Joel Sherrill <joel dot sherrill at oarcorp dot com>, Mike Frysinger <vapier at gentoo dot org>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>, Chris Johns <chrisj at rtems dot org>
- Date: Wed, 13 Mar 2013 11:17:59 -0700
- Subject: Re: sim/erc32/Makefile.in patch - was Re: GDB 7.5.91 available for testing
- References: <20130312231727.GF31629@adacore.com> <5140904A.2040206@oarcorp.com>
> 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