[3167] in Kerberos
Re: LIbraries usage
daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Sat Apr 23 09:24:14 1994
Date: Sat, 23 Apr 94 09:06:05 EDT
From: tytso@MIT.EDU (Theodore Ts'o)
To: athey@lorien.ocf.llnl.gov
Cc: kerberos@MIT.EDU
In-Reply-To: Charles L. Athey III's message of Fri, 22 Apr 94 17:22:52 PDT,
<9404230022.AA28206@lorien.ocf.llnl.gov>
Date: Fri, 22 Apr 94 17:22:52 PDT
From: athey@lorien.ocf.llnl.gov (Charles L. Athey III)
Do you know why the kerberos libraries in the Project.tmpl file
are specified as
By using the former the -entire- library is loaded versus just the routines
that are needed on some platforms causing a great difference in executable
size.
On most platforms, the linker will search the library regardless of
whether it is specified as libfoo.a, or as -lfoo. The advantage of the
former is that you're sure which library you will be getting, whereas
with -lfoo.a, you don't have the same level of control.
Are you running with linkers where if you specify foo.a, it is loading
the entire library, instead of searching it?
- Ted