From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31756 invoked by alias); 29 Jul 2010 18:49:32 -0000 Received: (qmail 31748 invoked by uid 22791); 29 Jul 2010 18:49:31 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Jul 2010 18:49:26 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id EA3DE5500C; Thu, 29 Jul 2010 11:49:24 -0700 (PDT) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost2.vmware.com (Postfix) with ESMTP id DD7608E7E0; Thu, 29 Jul 2010 11:49:24 -0700 (PDT) Message-ID: <4C51CD34.8040501@vmware.com> Date: Thu, 29 Jul 2010 18:49:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.22 (X11/20090609) MIME-Version: 1.0 To: Joel Brobecker CC: "gdb-patches@sourceware.org" Subject: Re: 7.2 branch, configure problem, --with-python References: <20100728182734.GV13267@adacore.com> <4C508BE3.4000705@vmware.com> <4C508CD3.4070309@vmware.com> <4C508DE6.8020807@vmware.com> <4C50914E.1030408@vmware.com> <20100728213636.GX13267@adacore.com> <4C50B58A.5080408@vmware.com> <20100729152827.GZ13267@adacore.com> <4C51BC60.1040104@vmware.com> <4C51BFEE.20602@vmware.com> <20100729184046.GB13267@adacore.com> In-Reply-To: <20100729184046.GB13267@adacore.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00548.txt.bz2 Joel Brobecker wrote: >>> Wow, thanks for going to all that effort. >> Umm, how does Py_ENABLE_SHARED get defined? >> Is this an environment variable that I need to set? > > No - This variable is defined in module sysconfig if your python was > built with --enable-shared. For instance, with 7.2-shared: > > % python-2.7-shared > >>> from distutils import sysconfig > >>> sysconfig.get_config_var("Py_ENABLE_SHARED") > 1 > > Whereas with the static version: > > % python-2.7-static > >>> from distutils import sysconfig > >>> sysconfig.get_config_var("Py_ENABLE_SHARED") > 0 > > Surprisingly, the system python installed on my ubuntu machine > returns 0 for Py_ENABLE_SHARED, even though I definitely have > the shared version of libpython there. But at the same time, > I do have both archive and dso installed at both /lib > and /lib/python-/config... > > That's why, I think, it ends up working for me, even though it > seems that the python that is distributed with ubuntu is statically > linked. > Umm, yeah. configure is always looking for the libs in /lib/config. Which for me (both system and personal install) contains only the static libs.