This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfa/rfc] Build libcommon.a for gdb and gdbserver
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: jan dot kratochvil at redhat dot com, brobecker at adacore dot com, tromey at redhat dot com, yao at codesourcery dot com, gdb-patches at sourceware dot org
- Date: Sun, 06 Mar 2011 18:23:00 +0100
- Subject: Re: [rfa/rfc] Build libcommon.a for gdb and gdbserver
- References: <4D30E23F.3080103@codesourcery.com> <m31v4blatz.fsf@fleche.redhat.com> <4D34C9DE.3040603@codesourcery.com> <m3mxmyi6i3.fsf@fleche.redhat.com> <4D375F44.70504@codesourcery.com> <m3oc69xjx8.fsf@fleche.redhat.com> <20110219121448.GA17297@adacore.com> <201102191318.p1JDIQE6005275@glazunov.sibelius.xs4all.nl> <20110306161631.GA15735@host1.jankratochvil.net> <201103061658.p26Gwvni017860@glazunov.sibelius.xs4all.nl>
Mark Kettenis <mark.kettenis@xs4all.nl> writes:
>> Date: Sun, 6 Mar 2011 17:16:31 +0100
>> From: Jan Kratochvil <jan.kratochvil@redhat.com>
>>
>> On Sat, 19 Feb 2011 14:18:26 +0100, Mark Kettenis wrote:
>> > Sorry, but I'm really strongly opposed to making GNU make a
>> > requirement.
>>
>> And does GDB HEAD build on BSD with its make?
>
> It did a couple of days ago.
>
>> It does not on OpenSolaris 2009.06:
>>
>> $ cd .../gdb/data-directory
>> $ make
>> mkdir -p -- ./python/gdb
>> mkdir -p -- ./python/./../python/lib/gdb
>> /usr/bin/ginstall: cannot stat `./../python/lib/./../python/lib/gdb/types.py':
>> No such file or directory
>> *** Error code 1
>> make: Fatal error: Command failed for target `stamp-python'
>>
>> But maybe it is a Solaris make bug and BSD make is compatible.
>
> Solaris make is probably of SVR4 heritage. Different codebase,
> different bugs!
The problem here is that $(PYTHON_FILES) appears as prerequisite of the
rule and the files are found via VPATH, so Solaris make modified the
expansion of $(PYTHON_FILES) to prefix it with the VPATH, causing
PYTHON_SRCDIR to appear twice. (*Note (autoconf) Automatic Rule Rewriting::)
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."