[omniORB] Library and Applications size

Duncan Grisby duncan@grisby.org
Wed Jun 12 18:50:01 2002


On Wednesday 12 June, jorgefm@cirsa.com wrote:

> I'm using a Intel Linux Machine in development, redhat 7.2 with kernel
> 2.4.19-pre8.
> How can i strip the library ? I only made:
> 
> ./configure --with-openssl=/lib --disable-thread-tracing
> 
> By default the sources are compiled without '-g', the what it means:
> "the omniORB library with debugging info and thread tracing is
> 6057915 bytes.  Without debugging info (but still with thread
> tracing), it's 2050652 bytes" ??

The orb core is currently built with debugging, due to line 144 of
src/lib/omniORB/orbcore/dir.mk that says

  CXXDEBUGFLAGS = -g

Comment it out, do a make veryclean; make; make install for that
directory, and the library will get down to around 2MB. The -g will be
removed for the release, of course. To strip the library, do

  strip libomniORB4.so.0.0

in the installation lib directory. I think stripping it will prevent
programs that try to dlopen it from finding any symbols, but it works
fine for programs explicitly linked against it at link time.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --