From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25472 invoked by alias); 25 Jan 2014 12:39:14 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 25461 invoked by uid 89); 25 Jan 2014 12:39:13 -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,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f178.google.com Received: from mail-lb0-f178.google.com (HELO mail-lb0-f178.google.com) (209.85.217.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 25 Jan 2014 12:39:12 +0000 Received: by mail-lb0-f178.google.com with SMTP id u14so3231138lbd.23 for ; Sat, 25 Jan 2014 04:39:09 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.112.139.72 with SMTP id qw8mr11572315lbb.16.1390653548868; Sat, 25 Jan 2014 04:39:08 -0800 (PST) Received: by 10.112.143.70 with HTTP; Sat, 25 Jan 2014 04:39:08 -0800 (PST) In-Reply-To: References: Date: Sat, 25 Jan 2014 15:26:00 -0000 Message-ID: Subject: Re: print out %D spec From: Jonathan Wakely To: Perry Smith Cc: gcc List Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00260.txt.bz2 On Jan 25, 2014 1:32 AM, "Perry Smith" wrote: > > I think, a %D in a spec creates a list of -L/a/b/c -L/d/e/f. gcc -dumpspecs shows me that link_libgcc goes to %D but it does not show me what %D produces. Is there a way to get gcc to dump that out? > > Basically what I'm trying to do is find the list of library paths that GCC tells ld to use when it calls ld. Adding -v to the gcc command will show everything it passes to the linker, you should be able to deduce what comes from the specs from that.