From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21158 invoked by alias); 31 May 2013 04:40:26 -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 21128 invoked by uid 89); 31 May 2013 04:40:20 -0000 X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO autolearn=ham version=3.3.1 Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 31 May 2013 04:40:14 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 65ADC2E4F5; Fri, 31 May 2013 00:40:12 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZA9tjbTGRsow; Fri, 31 May 2013 00:40:12 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id D91262E2B2; Fri, 31 May 2013 00:40:11 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 4D4ADC237F; Fri, 31 May 2013 08:40:06 +0400 (RET) Date: Fri, 31 May 2013 04:40:00 -0000 From: Joel Brobecker To: Paul Smith Cc: gdb@sourceware.org Subject: Re: GDB with python support: which version of Python? Message-ID: <20130531044006.GB4395@adacore.com> References: <1369951459.3295.229.camel@pdsdesk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1369951459.3295.229.camel@pdsdesk> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-05/txt/msg00140.txt.bz2 > 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. Forcing static libraries might work on GNU/Linux systems, but we've found it to be unworkable in general. Here is what we do at AdaCore: we build and install GDB inside GDB's prefix, and use that to configure GDB. You can then ship the entire GDB install, including Python. As long as the Python path is inside the GDB prefix, GDB should be locating the Python install fine (unless the user has the PYTHONHOME environment variable set, in which case I believe it overrides GDB's default behavior). -- Joel