[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
Linux
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?
Why:
Typically (based on the figures) you have the debugging informations
into
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
library
stored in /usr/lib is supposed to be bug-free).
How:
Try a tool named strip, particularly the -S option.
Another option is to use gcc -g1 if you do not intend to debug Freetype.
Antoine
===========================================================================================The
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
Winbond.===========================================================================================If
your computer is unable to decode Chinese font, please ignore the following
message. They essentially repeat the English statement
above.¥»«H¥ó¤º©Ò§tµØ¨¹¹q¤lªº°]²£©Ê¾÷±K©Ê¸ê°T,
¶È±ÂÅvìµo«H¤H«ü©w¤§¦¬«H¤H¨ú¾\¤§¥Î.
°²¨Ï±z¨Ã«D³Q«ü©w¤§¦¬«H¤H©Î¦]¥ô¦óì¦]¦b¥¼¸g±ÂÅvªº±¡§Î¤§¤U¦¬¨ì¥»«H¥ó,
½Ð±z§iª¾ìµo«H¤H¨Ã¥ß§Y±N«H¥ó±q¹q¸£»Pºô¸ô¦øªA¾¹¤¤¤©¥H®ø°£. ¹ï©ó±zªº¦X§@,
§ÚÌ¥ý¦¹PÁÂ. ¯S¦¹´£¿ô,
¥ô¦ó¥¼¸g±ÂÅv¾Õ¦Û¨Ï¥ÎµØ¨¹¹q¤lªº¾÷±K¸ê°Tªº¦æ¬°¬O³QÄY®æ¸T¤îªº.
«H¥ó»PµØ¨¹¹q¤lÀç·~µLÃö¤§¤º®e,¤£±oµø¬°µØ¨¹¹q¤l¤§¥ß³õ©Î·N¨£.