From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19377 invoked by alias); 21 Dec 2012 07:57:37 -0000 Received: (qmail 19368 invoked by uid 22791); 21 Dec 2012 07:57:36 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO 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; Fri, 21 Dec 2012 07:57:30 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 67CC62E525; Fri, 21 Dec 2012 02:57:29 -0500 (EST) 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 vk-zOWo9X3If; Fri, 21 Dec 2012 02:57:29 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id F06BD2E2EF; Fri, 21 Dec 2012 02:57:28 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 82DB0C3903; Fri, 21 Dec 2012 11:57:21 +0400 (RET) Date: Fri, 21 Dec 2012 07:57:00 -0000 From: Joel Brobecker To: Matthias Klose Cc: gdb-patches@sourceware.org Subject: Re: [patch] use python-config if available Message-ID: <20121221075721.GE5370@adacore.com> References: <50D331A6.5070102@ubuntu.com> <50D3321C.5030902@ubuntu.com> <20121220155906.GB5370@adacore.com> <50D3391A.4000506@ubuntu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50D3391A.4000506@ubuntu.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2012-12/txt/msg00761.txt.bz2 > cross building in a multiarch environment, where the host libraries > are installed, and a -python-config is shipped as part of the > system python. This -python-config is a backport of > http://bugs.python.org/issue16235 (not yet applied upstream). Ah, OK. Now I understand your problem. > so what is your recommendation? configure.ac reads: > > dnl /path/to/python/executable - > dnl Run python-config.py with this version of python to fetch the > dnl compilation parameters. > dnl NOTE: This needn't be the real python executable. > dnl In a cross-compilation scenario (build != host), this could be > dnl a shell script that provides what python-config.py provides for > dnl --ldflags, --includes, --exec-prefix. > > do I really have to provide a shell script, which shifts the first > parameter, and then calls the real python-config? I think that this was the plan, yes; but Doug Evans would probably know more, as he is the main author of this code (I only fiddled with it). -- Joel