Try the 'strip' command. I know it works with executables, not sure
about libraries.  It is included in the FPC bin directory.

eg:  strip <library name>

Regards,
 - Graeme -



On 13/09/06, Carsten Bager <[EMAIL PROTECTED]> wrote:



   If I create a shared library with this source code, the lib file has a size  
of 368806 bytes. Can I do anything to reduce the size.


   Carsten


   ------------------------


   library u;


   Procedure Test;
   Begin
   WriteLn('------- Test OK --------');
   End;


   exports
   Test;
   end.
   -------------------------
   Free Pascal Compiler version 2.0.2 [2006/06/26] for arm
   Copyright (c) 1993-2005 by Florian Klaempfl
   Target OS: Linux for ARM
   Compiling u.pas
   Assembling u
   Linking libu.so
   13 Lines compiled, 0.7 sec


   --



   Carsten Bager
   Bøvlingbjerg El-automatik
   Brørupvænget 10
   7650 Bøvlingbjerg
   Tlf. +4597885222 Fax +4597885434
   www.beas.dk
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal






--
There's no place like 127.0.0.1
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to