[RFA] Add support for --enable-lmcheck configure option.

Jan Kratochvil jan.kratochvil@redhat.com
Tue Jun 12 07:42:00 GMT 2012


Hi Joel,

On Mon, 11 Jun 2012 22:38:47 +0200, Joel Brobecker wrote:
> This allows the user to enable this option at configure time if building
> a release,
[...]
> It might be useful
> later on, when debugging memory problems on a release version of GDB.

this is bloating the configure script + configure help.  Just use:
	LDFLAGS=-lmcheck ./configure ...


> I don't think I'll personally use the --disable-libmcheck on a snapshot,
> but someone distributing a snaphot version might enjoy it too.

Yes:
	http://pkgs.fedoraproject.org/gitweb/?p=gdb.git;a=blob_plain;f=gdb-disable-mcheck.patch;hb=master

But I do not find it so important to make a configure option to it.


> OK?

Given that --disable-libmcheck for snapshot may make some sense I do not
oppose it but I do not think it is worth it, it is a corner case where one can
edit configure or Makefile IMO.

I understand the reason is to workaround current GDB bugs exposed by -lmcheck.
This is sure not the right solution.


Regards,
Jan



More information about the Gdb-patches mailing list