From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 567 invoked by alias); 13 Dec 2014 21:49:57 -0000 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 Received: (qmail 549 invoked by uid 89); 13 Dec 2014 21:49:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-vc0-f182.google.com Received: from mail-vc0-f182.google.com (HELO mail-vc0-f182.google.com) (209.85.220.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 13 Dec 2014 21:49:52 +0000 Received: by mail-vc0-f182.google.com with SMTP id hq12so4576499vcb.13 for ; Sat, 13 Dec 2014 13:49:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=wHH9CoWd2g3WhXQH/b7YFP1FLpoyIyXdh+z9nkYK8LM=; b=OvAubO+LuFUQEwNzYbT08FJO+zkTTHWOsWMboA3Fubi7z1Rw+khIpwHAyc7JMC4Eul /pvtWoIOtoRxiHJfjjXyzUIWDqZ6nkqwVQCIyqTKP+K/mw/weJhJMF+qMiq3VILV5636 wDRI8MaYvfsSDVNHG6iqK+4wl2dvBTC9esxNQ+Udm+9NHAv/q/9ZOnnFxH/ab6nfWB/X wduwN5JDk3+rZHEmFcwFjflVVXMTAS6oY4C4quTvN7YBoi884Di7WbdLv6cQnWx/AKU4 Rn2tHGzpxAe9fId3Tb5VKjy9BcCum1wPzwp9lfbqodJT1TDSXIQcRt+MJCYXfFqOGZCF Xhlw== X-Gm-Message-State: ALoCoQn5SFjot5Ox4/s8nOYHJ9NVZDO8xmTWg/Mn00BU9SsSBX4Hn7PVlQrzuMRfsNJ25jKSEVmc MIME-Version: 1.0 X-Received: by 10.52.231.165 with SMTP id th5mr11584852vdc.48.1418507390498; Sat, 13 Dec 2014 13:49:50 -0800 (PST) Received: by 10.52.114.101 with HTTP; Sat, 13 Dec 2014 13:49:50 -0800 (PST) In-Reply-To: <20141213201600.GA15686@host2.jankratochvil.net> References: <83mw6sq941.fsf@gnu.org> <20141213185647.GA14208@host2.jankratochvil.net> <20141213201600.GA15686@host2.jankratochvil.net> Date: Sat, 13 Dec 2014 21:49:00 -0000 Message-ID: Subject: Re: path to find libcc1.so? From: Doug Evans To: Jan Kratochvil Cc: Eli Zaretskii , gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00334.txt.bz2 On Sat, Dec 13, 2014 at 12:16 PM, Jan Kratochvil wrote: > On Sat, 13 Dec 2014 20:57:35 +0100, Doug Evans wrote: >> Early adopters and those who want to contribute may find it preferable >> to use, e.g., ~/.gdbinit. >> >> If this is something we eventually want to do, doing it now will help >> people we want/need. >> >> Plus it's, what, 10 lines of (real) code? > > It is then questionable whether there should also be a GDB option where to > find the GCC driver. Currently gcc/libcc1/findcomp.cc searches it in $PATH. That is a good question. If I configure gcc with a certain --prefix, and link libcc1.so, with, say, --rpath, do/should I need to do anything more? [for a normal installation (libcc1.so has not been copied out of $prefix and into some random directory) should libcc1.so be able to find its gcc on its own?]