public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* Re: ELF and libg++
       [not found] <9410172231.AA25796@getafix>
@ 1994-10-19  5:36 ` H.J. Lu
  1994-10-19  7:06   ` Eric Youngdale
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 1994-10-19  5:36 UTC (permalink / raw)
  To: Glenn Geers; +Cc: Ian Lance Taylor, Ken Raeburn, gas2, Eric Youngdale

> 
> > 
> > Hi,
> > 
> > I have got the shared ELF libg++ working under i486-linuxelf. The
> > only problem is I have to link with libtermcap.a and libcurses.a
> > althought I don't use them. That is because CursesW.o requires
> > them. For the shared library, they must be linked in.
> > 
> > I am not sure to put CursesW.o in libg++.a is a good idea. Maybe
> > there should be a libcurses++.a.
> 
> On SVr4 there is a linker option to ignore unresolved externals. This
> solves the problem you describe above. Of course, if you write a prog that
> uses functions defined in CursesW.o you have to link it against libcurses.
> This technique is routine when linking X apps.
> 
> I don't use the gnu loader so I'm not sure if it has an equivalent option.
> May be a good thing to suggest to the bunutils crowd.

I am not sure GNU ld support that. Eric, can we tell d-linker to ignore
unresolved externals? How can we pass that from ld to d-linker?

-- 
H.J. Lu
NYNEX Science and Technology, Inc.			hjl@nynexst.com


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

* Re: ELF and libg++
  1994-10-19  5:36 ` ELF and libg++ H.J. Lu
@ 1994-10-19  7:06   ` Eric Youngdale
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Youngdale @ 1994-10-19  7:06 UTC (permalink / raw)
  To: hjl; +Cc: ggeers, ian, raeburn, gas2

>I am not sure GNU ld support that. Eric, can we tell d-linker to ignore
>unresolved externals? How can we pass that from ld to d-linker?

	When you use the --shared switch, it effectively does this.  I am not
sure about what you can do when linking a normal executable.  There may or may
not be an appropriate switch for what you need.

-ERic



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

end of thread, other threads:[~1994-10-19  7:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <9410172231.AA25796@getafix>
1994-10-19  5:36 ` ELF and libg++ H.J. Lu
1994-10-19  7:06   ` Eric Youngdale

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