Article View: comp.std.unix
Article #713Standard behaviour when searching libraries
From: Dik T. Winter
Date: Sat, 19 Jan 1991 01:54
Date: Sat, 19 Jan 1991 01:54
19 lines
1218 bytes
1218 bytes
Submitted-by: dik@cwi.nl (Dik T. Winter) As I do not have access to any of the current or forthcoming standards, I ask this question here. Is it defined anywhere what the behaviour of the loader is in the load step with respect to libraries? Especially is there any difference between a full path specification of the library or a short hand specification using -l? I ask because I encountered a system that showed a marked difference between: cc foo.c /usr/lib/libm.a and: cc foo.c -lm In the first case the complete library is linked into the object module, in the second only the routines needed are linked in. Does any standard say something about this (SVID, Posix)? -- dik t. winter, cwi, amsterdam, nederland dik@cwi.nl Volume-Number: Volume 22, Number 77
Technical Details
Message-ID:
<17099@cs.utexas.edu>Path:
arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!jsqShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!jsq From: dik@cwi.nl (Dik T. Winter) Newsgroups: comp.std.unix Subject: Standard behaviour when searching libraries Message-ID: <17099@cs.utexas.edu> Date: 19 Jan 91 01:54:54 GMT Sender: jsq@cs.utexas.edu Organization: CWI, Amsterdam Lines: 19 Approved: jsq@cs.utexas.edu (Moderator, John S. Quarterman) X-Submissions: std-unix@uunet.uu.net