public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Perry Smith <pedzsan@gmail.com>
To: Jonathan Wakely <jwakely.gcc@gmail.com>
Cc: gcc List <gcc@gcc.gnu.org>
Subject: Re: print out %D spec
Date: Sat, 25 Jan 2014 20:34:00 -0000	[thread overview]
Message-ID: <29BB1A02-64E4-4F08-9035-33A7828F87EC@gmail.com> (raw)
In-Reply-To: <CAH6eHdQ5h+W-eOxN+fnnE0EOD=2aDPjakn8n9iQw8LLc2guhNw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1168 bytes --]

Yea.  I'm trying to smush this into a build process.  The Ruby build process believes it knows how to set the internal libpath of the executables but it actually does not.  It does not know what gcc knows and the end result is an executable that can not find libgmp.a.  I was hoping to teach it Ruby's build process to construct a better libpath.

The only thought I have is to compile a simple executable and then pull the libpath in the executable out of that using dump -H but I was hoping for something simpler.

Thank you for your time,
Perry

On Jan 25, 2014, at 6:39 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:

> 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.


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

      reply	other threads:[~2014-01-25 16:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-25 12:39 Perry Smith
2014-01-25 15:26 ` Jonathan Wakely
2014-01-25 20:34   ` Perry Smith [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29BB1A02-64E4-4F08-9035-33A7828F87EC@gmail.com \
    --to=pedzsan@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=jwakely.gcc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).