Subject:
|
Re: ldglite (ldlite for OpenGL and Linux) new stuff
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Wed, 26 Jan 2000 22:42:33 GMT
|
Viewed:
|
1461 times
|
| |
| |
In lugnet.cad.dev, Don Heyse writes:
> {snip}
> I have to admit, I'm pretty psyched about the 3360 byte executable size you
> attained, even if it doesn't work...
Actually I'm not quite as impressed as I was a few minutes ago. I checked
the size of the executable in the zip file and it's only 81064 bytes. The
bloat we saw was the debugging symbols. You can remove them with this.
strip ldglite
I now suspect the 3360 byte executable is probably way too small to contain
a real executable even with shared libraries.
Just for the heck of it, what do you get when you try this?
strings ldglite | grep lib
I get this:
libglut.so.3
libMesaGLU.so.3
libMesaGL.so.3
libX11.so.6
libXi.so.6
libXext.so.6
libXmu.so.6
libm.so.6
libc.so.6
__libc_start_main
Looks like I'm using those shared libraries. It's interesting to note
that the linker found it's way through the soft links and stored the names
of the actual library files in the executable rather than the names of
the soft links.
Actually, that's not true. The real names end in .so.3.1 I have no idea
what it's doing... Gotta do some more man page browsing.
don
|
|
Message has 1 Reply: | | Re: ldglite (ldlite for OpenGL and Linux) new stuff
|
| (...) Whoa -- the ldglite I produced via libtool is an sh wrapper for .libs/ldglite produced by ltmain.sh (part of libtool I guess). That's how it's so small! :) 3k seemed awful small to me too -- almost unbelievable. 20k I could believe easily, 3k (...) (25 years ago, 26-Jan-00, to lugnet.cad.dev)
|
Message is in Reply To:
| | Re: ldglite (ldlite for OpenGL and Linux) new stuff
|
| libtool eh? What the heck is that? I seem to have it in /usr/local/bin but "man libtool" turns up nothing. I guess I'll have to read the man pages on gcc and ld to find out more about the shared libs vs static linking switches. Oh well, I was gonna (...) (25 years ago, 26-Jan-00, to lugnet.cad.dev)
|
70 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|