From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28134 invoked by alias); 28 Jul 2010 18:23:09 -0000 Received: (qmail 28121 invoked by uid 22791); 28 Jul 2010 18:23:07 -0000 X-SWARE-Spam-Status: No, hits=-4.5 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; Wed, 28 Jul 2010 18:23:00 +0000 Received: from mailhost4.vmware.com (mailhost4.vmware.com [10.16.67.124]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 636EAF008; Wed, 28 Jul 2010 11:22:59 -0700 (PDT) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost4.vmware.com (Postfix) with ESMTP id 56DC1C9B81; Wed, 28 Jul 2010 11:22:59 -0700 (PDT) Message-ID: <4C507583.4010801@vmware.com> Date: Wed, 28 Jul 2010 18:23: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: <4C4E1E0F.80309@vmware.com> <1280244591.2661.104.camel@hactar> <4C4F7A39.9030606@vmware.com> <20100728172017.GK13267@adacore.com> <4C50688B.1050105@vmware.com> <20100728173706.GO13267@adacore.com> <4C506FF0.3010405@vmware.com> <20100728180845.GT13267@adacore.com> <4C50728A.4090708@vmware.com> <20100728181926.GU13267@adacore.com> In-Reply-To: <20100728181926.GU13267@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; 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/msg00507.txt.bz2 Joel Brobecker wrote: >>> Can you try on HEAD first? That would be the simplest for me, as >>> I am a little under pressure to catch up on all fronts, right now. >>> >> Patch doesn't apply on HEAD. > > It just applied fine for me. Are you sure? (please note the extra a/ and > b/ in the directory names, so you have to use a different -p level). > Are we talking about the same patch? diff --git a/gdb/python/python-config.py b/gdb/python/python-config.py index 0230eb4..aa4aea3 100644 --- a/gdb/python/python-config.py +++ b/gdb/python/python-config.py @@ -50,8 +50,21 @@ for opt in opt_flags: # add the prefix/lib/pythonX.Y/config dir, but only if there is no # shared library in prefix/lib/. if opt == '--ldflags': + # Provide the location where the Python library is installed. + # We always provide it, because Python may have been installed + # at a non-standard location. if not getvar('Py_ENABLE_SHARED'): - libs.insert(0, '-L' + getvar('LIBPL')) + # There is no shared library in prefix/lib. The static + # library is in prefix/lib/pythonX.Y/config. + # + # Note that we cannot use getvar('LIBPL') like we used to, + # because it provides the location at build time, which might + # be different from the actual location at runtime. + libdir = sysconfig.get_python_lib(standard_lib=True) + '/config' + else: + # The Python shared library is installed in prefix/lib. + libdir = sysconfig.PREFIX + '/lib' + libs.insert(0, '-L' + libdir) libs.extend(getvar('LINKFORSHARED').split()) print ' '.join(libs)