Re: [rfa/rfc] Build libcommon.a for gdb and gdbserver

Andreas Schwab
2011-03-06T17:23:12Z

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."