This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [stdc++] Mark global new/delete operators as weak symbols
- From: Mike Stump <mikestump at comcast dot net>
- To: Romain Geissler <romain dot geissler at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, libstdc++ at gcc dot gnu dot org, Lénaïc Huard <lenaic dot huard at laposte dot net>
- Date: Wed, 4 Sep 2013 07:53:34 -0700
- Subject: Re: [stdc++] Mark global new/delete operators as weak symbols
- Authentication-results: sourceware.org; auth=none
- References: <CAF+LTecSK4DJNZ7BsV_i45GEfRo=JoxkLapiZYZLBAqOxnw33w at mail dot gmail dot com> <CAF+LTefkvngHfJaZXud_ZAnB6LQe0M8q3T7kvaTHjfrG-Tf+Dg at mail dot gmail dot com>
On Sep 4, 2013, at 7:30 AM, Romain Geissler <romain.geissler@gmail.com> wrote:
>> 2013-08-20 Romain Geissler <romain.geissler@gmail.com>
>>
>> * config/os/gnu-linux/os_defines.h: (_GLIBCXX_WEAK_DEFINITION): Define.
Strikes me as wrong. Using weak should be autoconfed or driven by the compiler and then respected by the library. With that change, all targets, wether they are linux or not, then work. The above fixes one target, at the expense of not fixing any other targets.