[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Devel] libfreetype.a file size much different in Red-Hat Linux

From: CYLiang
Subject: RE: [Devel] libfreetype.a file size much different in Red-Hat Linux
Date: Thu, 11 Nov 2004 20:03:34 +0800

Hi Antoine:
        Thanks a lot,
After using strip or modify CFLAGS without "-g", the generated
libfreetype.a is much smaller ( 363K ). 
More, is there any easy/convenient solution to minimize the
libfreetype.a ( maybe just combine used modules, not full modules ) ?

Best regards,
Chris Liang

-----Original Message-----
From: address@hidden [mailto:address@hidden On
Behalf Of Antoine Leca
Sent: Thursday, November 11, 2004 6:27 PM
To: address@hidden
Subject: Re: [Devel] libfreetype.a file size much different in Red-Hat

Chris Liang wrote:
> Built by me libfreetype.a file size is about 2092 K.
> Red-Hat Linux /usr/lib/ libfreetype.a. file size is 391 K.
> Why  and how to reduce the file size?

Typically (based on the figures) you have the debugging informations
your library (this is normal since by default Freetype ships with the -g
option on), RedHat version does not (again, this is correct since a
stored in /usr/lib is supposed to be bug-free).

Try a tool named strip, particularly the -S option.
Another option is to use gcc -g1 if you do not intend to debug Freetype.


 privileged confidential information contained in this email is intended for 
use only by the addressees as indicated by the original author of this email. 
If you are not the addressee indicated in this email or are not responsible for 
delivery of the email to such person, please kindly reply the sender indicating 
accordingly and delete all copies of it from your computer and network server 
immediately. We thank you for your cooperation. It is advisable that any 
unauthorized use of confidential information of Winbond is strictly prohibited; 
and any information in this email that does not relate to the official business 
of Winbond shall be deemed as neither given nor endorsed by 
 your computer is unable to decode Chinese font, please ignore the following 
message. They essentially repeat the  English statement 
½Ð±z§iª¾­ìµo«H¤H¨Ã¥ß§Y±N«H¥ó±q¹q¸£»Pºô¸ô¦øªA¾¹¤¤¤©¥H®ø°£. ¹ï©ó±zªº¦X§@, 
§Ú­Ì¥ý¦¹­PÁÂ. ¯S¦¹´£¿ô, 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]