public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* is there any way to change the order of name resolution in linking (aside from putting the libraries in the right order?)
@ 2012-09-27  5:09 Dan Hitt
  2012-09-27  5:24 ` Ian Lance Taylor
  0 siblings, 1 reply; 12+ messages in thread
From: Dan Hitt @ 2012-09-27  5:09 UTC (permalink / raw)
  To: gcc-help

I am building some code and i need a certain library to be linked in
last, so it can resolve symbols left unresolved earlier.

Normally the way to do this would be to just list that library last
on the command line.

However, i'm using a build system which constructs all the
commands for me, and although it makes a provision for
adding extra arguments to the linker, they end up going first.

So although i can add arguments to the link, i cannot order
them the way i want, and i get unresolved symbols as a consequence.

So i'm wondering if there's any argument i can slip in that will change
the order that gcc runs through the libraries in.

(The gcc info suggest not, but perhaps there's an undocumented
option for doing this?)

Thanks in advance for any clues on this.

dan

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-10-01  4:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-27  5:09 is there any way to change the order of name resolution in linking (aside from putting the libraries in the right order?) Dan Hitt
2012-09-27  5:24 ` Ian Lance Taylor
2012-09-27 14:05   ` Feuerbacher, Alan
2012-09-27 16:06     ` Jonathan Wakely
2012-09-27 17:56     ` Ian Lance Taylor
2012-09-27 20:05       ` Dan Hitt
2012-09-27 20:08         ` Jonathan Wakely
2012-09-27 20:16           ` Dan Hitt
2012-09-28 13:13             ` Vardhan, Sundara (GE Transportation)
2012-09-30  1:06               ` Dan Hitt
2012-09-30 10:00                 ` Jonathan Wakely
2012-10-01  4:14                   ` Dan Hitt

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