From: kfisher3@mach1.wlu.ca (kevin fisher U) Subject: Re: problems with g++ 2.3.3 Date: Thu, 11 Feb 1993 20:26:45 GMT
: If you want to keep your executables small, just extract the c++
: specific modules out of libc.a and group them into a new library.
: Here is what I did:
:
: ar t /usr/lib/libc.a | sort >static
: ar t /usr/lib/libc.sa |sort >dynamic
: diff static dynamic | awk ' /</ { print $2 } ' >c++
: ar x /usr/lib/libc.a `cat c++`
: ar sx libc++.a `cat c++`
: mv libc++.a /usr/lib/libc++.a
:
: After doing this, compile your programs with 'g++ test.C -lc++'
:
: This gives me an executable which has only half the size of the one
: obtained by 'g++ -static test.C'
:
Can anyone tell me if G++ is going to stay like this? Will we be able to
compile c++ stuff without the -static option in the near (or far) future?
Just curious..
-- Kevin Fisher ><> | WLU - - Home of the kfisher3@mach1.wlu.ca | Internationally Bright Young Thingies