From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4043 invoked by alias); 21 Jul 2008 02:03:51 -0000 Received: (qmail 4027 invoked by uid 22791); 21 Jul 2008 02:03:49 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 Jul 2008 02:03:20 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 046358002B; Mon, 21 Jul 2008 02:03:19 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id D5D6580001; Mon, 21 Jul 2008 02:03:18 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KKkkA-0001DU-DE; Sun, 20 Jul 2008 22:03:18 -0400 Date: Mon, 21 Jul 2008 02:03:00 -0000 From: Daniel Jacobowitz To: Thiago Jung Bauermann Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] iRe: [RFC][patch 1/9] initial Python support Message-ID: <20080721020318.GB4236@caradoc.them.org> Mail-Followup-To: Thiago Jung Bauermann , gdb-patches@sources.redhat.com References: <20080429155304.288626880@br.ibm.com> <20080528205921.GA2969@caradoc.them.org> <20080615181833.uxmo25mg0kko40kw@imap.linux.ibm.com> <1216107418.14956.27.camel@localhost.localdomain> <1216245620.12209.18.camel@localhost.localdomain> <20080718195010.GA14356@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) 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: 2008-07/txt/msg00388.txt.bz2 On Sun, Jul 20, 2008 at 08:47:08PM -0300, Thiago Jung Bauermann wrote: > Actually, I just found the problem. If Python support is not being > compiled in, python/python.c will not be included in INIT_FILES. And the > fact that python.o is in COMMON_OBS will not help because of the reason > outlined in my comment. That's why I added python/python.c explicitly in > INIT_FILES. > > Another way to solve the problem, which I am using this time, is to add > the following else clause to configure.ac: Is it in both COMMON_OBS and CONFIG_OBS? Sounds like it should be in CONFIG_OBS all the time, never in COMMON_OBS. Which means CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS also. > if test "${have_libpython}" = yes; then > AC_DEFINE(HAVE_PYTHON, 1, [Define if Python interpreter is being linked in.]) > CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)" > CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)" > CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)" > CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_PYTHON_INITS)" > ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)" CONFIG_INITS appears to be obsolete. -- Daniel Jacobowitz CodeSourcery