[1896] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: svr4 shared libs, makeshlib and "-h" linker option in gcc

daemon@ATHENA.MIT.EDU (Tom Yu)
Mon Oct 28 23:38:40 1996

Date: Mon, 28 Oct 1996 23:38:35 -0500
To: Ezra Peisach <epeisach@MIT.EDU>
Cc: Tom Yu <tlyu@MIT.EDU>, krbdev@MIT.EDU
From: Tom Yu <tlyu@MIT.EDU>
In-Reply-To: <9610290431.AA15837@kangaroo.mit.edu>

>>>>> "Ezra" == Ezra Peisach <epeisach@MIT.EDU> writes:

Ezra> Hmm - does mean we need to worry about gcc compiled w/ and w/o
Ezra> gld?

I'm not sure.  My guess is that if someone is using sufficiently
recent gcc and binutils then it will be ok... i.e. if they're using a
recent enough gld then it will grok "-h", and also if they're using
the native linker it will dtrt.  If they're using gcc and a gld that's
old enough to not know about "-h" then we might have a problem, but
I'm not sure we want to worry about supporting that... esp since we'd
have to test the following, basically in order:

* does gcc accept "-h"
	(I'm not sure when this showed up in gcc... possibly 2.7.0)
* does gcc accept "-Wl,-h -Wl,libfoo.so.0.0"
	(This means that the linker called by gcc will take "-h")
* does gcc accept "-Wl,-soname -Wl,libfoo.so.0.0"
	(This means we're using the gnu ld, and it takes "-soname")

I'm not certain that it's worth the bother.

---Tom

home help back first fref pref prev next nref lref last post