freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] How to customize FreeType library?


From: David Turner
Subject: Re: [Freetype] How to customize FreeType library?
Date: Thu, 26 Dec 2002 11:05:37 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2a) Gecko/20020910

Hello James,

James Su wrote:
> Hi,
> I want to remove some unusable module out of my freetype 2.1.3 library.
> According to the document, I edited ftmodule.h to remove some entries,
> and rebuilt. But all of the modules were linked into the library as
> usual. Why it cannot work? Are there any other things must be done for it?
> 
If you only modify "ftmodule.h", all regular modules will be compiled
and included in the library.

However, if you link an application with the static library (like
"libfreetype.a" on Unix, or "freetype.lib" on Windows), the "unused"
modules will automatically be removed by the linker when creating
the executable.

This doesn't work when using the shared library (i.e. libfreetype.so
or freetype.dll). To make a smaller version of these, you'll need
to manually remove the unwanted modules directories from the source
tree and rebuild.

However, be cautious if you take that road, because some modules
depend on other ones. If you don't remove directories correctly,
you might build a version of the library that will be un-linkable
to any executable.

I thus advise you to use the "static" method instead..

Regards,

- David Turner
- The FreeType Project  (www.freetype.org)




> Regards
> James Su
> 
> 
> _______________________________________________
> Freetype mailing list
> address@hidden
> http://www.freetype.org/mailman/listinfo/freetype
> 





reply via email to

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