Article View: gnu.gcc.help
Article #42555dynamic linking
From: Benoit Gennart
Date: Fri, 24 Nov 1995 00:00
Date: Fri, 24 Nov 1995 00:00
36 lines
1455 bytes
1455 bytes
Hello,
I am in need of net wisdom.
I teach an entry level course on a network of
sun workstations. I prepared a 'graphics' library
based on motif.
My account and the students accounts are, as far
as I know, identical (with the exception of the
smaller quota).
If I compile a short program and link in my graphics
library, libXm.a and other required library,
my resulting executable is, thanks to dynamic
linking, around 50KB in size.
If one of my students does the same, he gets
an executable around 2MB in size. The loader
has not performed dynamic linking.
I checked
the ld command (using gcc -v), and in both
cases the load commands are identical.
I could not see any difference in environment
variables.
Did anyone experience such a behavior from the
loader, and know the reason it would switch
from dynamic linking to static linking ?
Thanks in advance.
-- Benoit
Technical Details
Message-ID:
<GENNART.95Nov24152410@lspsun8.epfl.ch>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,17e72bb29e45ff78,start X-Google-Attributes: gid11318c,public From: gennart@lspsun8.epfl.ch (Benoit Gennart) Subject: dynamic linking Date: 1995/11/24 Message-ID: <GENNART.95Nov24152410@lspsun8.epfl.ch> X-Deja-AN: 120031686 organization: Ecole Polytechnique Federale de Lausanne content-type: text/plain; charset=iso-8859-1 mime-version: 1.0 newsgroups: gnu.gcc.help