This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] configure gdb/gnulib with --disable-largefile if largefile support disabled.
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org, yao at codesourcery dot com
- Date: Thu, 04 Dec 2014 08:47:25 +0200
- Subject: Re: [RFA] configure gdb/gnulib with --disable-largefile if largefile support disabled.
- Authentication-results: sourceware.org; auth=none
- References: <20141203104812 dot GA14666 at adacore dot com> <1417608509-15533-1-git-send-email-brobecker at adacore dot com> <83h9xc62dw dot fsf at gnu dot org> <20141204031828 dot GD7899 at adacore dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 4 Dec 2014 07:18:28 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb-patches@sourceware.org, yao@codesourcery.com
>
> > > But gnulib ignores this fact, and so tries to determine how to
> > > enable large-file support irrespective of whether we want it or not.
> > > This patch fixes the issue by passing --disable-largefile to gnulib's
> > > configure when large-file support in GDB is disabled. This is done
> > > by first enhancing ACX_CONFIGURE_DIR to allow us to pass extra
> > > arguments to be passed to the configure command, and then by modifying
> > > GDB's configure to pass --disable-largefile if large-file support
> > > is disabled.
> >
> > Shouldn't this be reported to gnulib folks and preferably fixed there?
>
> I do not think so, because gnulib can be used independently of procfs,
> in which case you would probably want gnulib to have large-file support
> by default. It's only in GDB and binutils' peculiar situation that
> we need to disable by default.
Gnulib could have the necessary magic to DTRT in both situations, I
think.
Anyway, I don't think it's wise to not even tell Gnulib folks about
this. If they say it's just our problem, so be it. But they might
have other proposals.