This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] [readline] Fix !djgpp x djgpp canadian builds.
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pedro Alves <palves at redhat dot com>
- Cc: bug-readline at gnu dot org, gdb-patches at sourceware dot org
- Date: Wed, 22 May 2013 05:47:01 +0300
- Subject: Re: [PATCH] [readline] Fix !djgpp x djgpp canadian builds.
- References: <20130521202859 dot 22914 dot 11860 dot stgit at brno dot lan>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Pedro Alves <palves@redhat.com>
> Cc: gdb-patches@sourceware.org
> Date: Tue, 21 May 2013 21:28:59 +0100
>
> While trying to build a --host=i586-pc-msdosdjgpp gdb on GNU/Linux
> (Fedora 17), I stumbled on a build error in readline:
>
> config.status: executing default commands
> make: *** No rule to make target `/config.h', needed by `readline.o'. Stop.
>
> Turns out BUILD_DIR was ending up empty in the Makefile:
>
> ...
> BUILD_DIR =
> ...
> readline.o: rldefs.h ${BUILD_DIR}/config.h rlconf.h
> ...
>
> The issue is that configure is deciding whether to run pwd.exe or pwd
> based on $host_os (msdosdjgpp), while it should be checking $build_os
> instead (linux-gnu).
Looks good, thanks. I guess this is a remnant from old days, when
host and build were something else.