From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8685 invoked by alias); 31 May 2013 20:23:35 -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 8676 invoked by uid 89); 31 May 2013 20:23:35 -0000 X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 31 May 2013 20:23:34 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UiVrI-0006kV-Gj from joseph_myers@mentor.com ; Fri, 31 May 2013 13:23:32 -0700 Received: from SVR-IES-FEM-02.mgc.mentorg.com ([137.202.0.106]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 31 May 2013 13:23:32 -0700 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.2.247.3; Fri, 31 May 2013 21:23:30 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.76) (envelope-from ) id 1UiVrF-0004mS-Mj; Fri, 31 May 2013 20:23:29 +0000 Date: Fri, 31 May 2013 20:23:00 -0000 From: "Joseph S. Myers" To: Paul Smith CC: Subject: Re: GDB with python support: which version of Python? In-Reply-To: <1369951459.3295.229.camel@pdsdesk> Message-ID: References: <1369951459.3295.229.camel@pdsdesk> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2013-05/txt/msg00148.txt.bz2 On Thu, 30 May 2013, Paul Smith wrote: > Hi all; > > I'm trying to build a portable version of GDB, with Python support, that > I can use on many different (GNU/Linux) systems. It's frustrating > because Python versions are all over the place: every distro you use, it > seems like, has a different not-completely-compatible version. > > Plus, I can't find any straightforward way to build GDB with Python > linked statically to avoid local .so version problems. Seems GDB > configure doesn't really support this. I'm thinking of pulling a Python > install without any .so to force static linking. Have others tried > this? You can link with a .so copy of Python shipped with the GDB installation using -Wl,-rpath,$ORIGIN. Unfortunately multiple levels of shell and makefile interpretation make passing that '$' down a pain; at Mentor we have a shell variable setting flags='-Wl,-rpath,'\''\\\$$\$$\\\$$\$$ORIGIN'\''/../'"$pypath" for this purpose, but the exact levels of quotation required may depend on exactly how you pass the linker options when configuring GDB. See . -- Joseph S. Myers joseph@codesourcery.com