From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100791 invoked by alias); 13 Feb 2017 15:19:12 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 100774 invoked by uid 89); 13 Feb 2017 15:19:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=djegccgmailcom, dje.gcc@gmail.com, U*gdb, gdbsourcewareorg X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Feb 2017 15:19:10 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdIPD-0003Fp-NM for gdb@sourceware.org; Mon, 13 Feb 2017 10:19:08 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdIP8-0003F6-2p; Mon, 13 Feb 2017 10:19:02 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1603 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cdIP7-0006Sp-7l; Mon, 13 Feb 2017 10:19:01 -0500 Date: Mon, 13 Feb 2017 15:19:00 -0000 Message-Id: <83d1em15l7.fsf@gnu.org> From: Eli Zaretskii To: David Edelsohn CC: pedro@palves.net, mishra.nitish.88@gmail.com, gdb@sourceware.org, qiyaoltc@gmail.com In-reply-to: (message from David Edelsohn on Mon, 13 Feb 2017 10:02:35 -0500) Subject: Re: Issue with Latest GDB on AIX with GCC-6.12 Reply-to: Eli Zaretskii References: <331a72d9-050c-7cd7-adc2-78e5f1ed6f85@redhat.com> <57147db4-83c3-2a8f-0c74-0efc6a94e9f5@redhat.com> <5967c781-4f67-06f2-db34-f4cb3818d603@palves.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00030.txt.bz2 > From: David Edelsohn > Date: Mon, 13 Feb 2017 10:02:35 -0500 > Cc: Nitish Kumar Mishra , "gdb@sourceware.org" , Yao Qi > > >> Can we disable -static-libgcc and -static-libstdc++ for AIX? > > > > Works for me. Those are added by the top level configure. They were > > originally added for gcc, we just inherited it. Ideally adding > > those would be controllable with a configure option, IMO. > > We shouldn't disable static-libgcc and static-libstdc++ for GCC. And > static would be better. But linking GDB dynamically could be helpful > as an interim work-around. Please let's not do that on MS-Windows at least. Dynamically linking against these two libraries has the following 2 adverse effects: . it requires any site that distributes precompiled Windows binaries of GDB to also distribute the full humongous tarball of GCC sources (because libgcc runtime exception doesn't cover dynamic linking against shared libraries); and . it opens the gates of the "DLL hell", since there's any number of libgcc and libstdc++ DLLs from different versions of GCC floating around on any given Windows system with GNU software, and there's no practical way to ensure binary compatibility between the one found first on PATH and a particular version of GDB one wants to run