This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Enable building GDB without installed libtermcap
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pedro Alves <palves at redhat dot com>
- Cc: bernd dot edlinger at hotmail dot de, gdb-patches at sourceware dot org, dje at google dot com, vapier at gentoo dot org
- Date: Thu, 26 Feb 2015 20:00:17 +0200
- Subject: Re: [PATCH] Enable building GDB without installed libtermcap
- Authentication-results: sourceware.org; auth=none
- References: <DUB118-W1951908395674D538A9BBDE4280 at phx dot gbl> <54EB4FDF dot 1060909 at redhat dot com> <54EB513A dot 8050706 at redhat dot com> <DUB118-W469E26146CD54CFEE749FCE4160 at phx dot gbl> <54EF5C56 dot 9010101 at redhat dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 26 Feb 2015 17:48:06 +0000
> From: Pedro Alves <palves@redhat.com>
> CC: GDB Patches <gdb-patches@sourceware.org>, Doug Evans <dje@google.com>, Mike Frysinger <vapier@gentoo.org>
>
> My idea to work around that is to simply use __attribute__((weak)).
> Of all supported hosts
> (https://sourceware.org/gdb/wiki/Systems#Supported_Hosts),
> Windows/PE/COFF would be the one that I'd be worried about WRT use of
> weak, but the limited weak support in PE/COFF seems to work here. A
> cross build using x86_64-w64-mingw32 on Fedora 20 builds fine with
> this.
With what version of GCC? Quick testing indicates that 4.8.1 supports
that, but 3.4.2 doesn't.
Which version of GCC is the minimal one we want to support?
Or how about making this conditional on C++?