From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27061 invoked by alias); 29 Jul 2010 18:41:04 -0000 Received: (qmail 27046 invoked by uid 22791); 29 Jul 2010 18:41:02 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Jul 2010 18:40:56 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id F42042BAC4B; Thu, 29 Jul 2010 14:40:54 -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 FN108uQZgmyt; Thu, 29 Jul 2010 14:40:54 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id A81B82BAC48; Thu, 29 Jul 2010 14:40:54 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id EDC065BE20; Thu, 29 Jul 2010 11:40:46 -0700 (PDT) Date: Thu, 29 Jul 2010 18:41:00 -0000 From: Joel Brobecker To: Michael Snyder Cc: "gdb-patches@sourceware.org" Subject: Re: 7.2 branch, configure problem, --with-python Message-ID: <20100729184046.GB13267@adacore.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4C51BFEE.20602@vmware.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00546.txt.bz2 > >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. -- Joel