[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freetype] problem with static linking
From: |
Anthony Feick |
Subject: |
[Freetype] problem with static linking |
Date: |
Mon, 14 Oct 2002 13:45:03 -0500 |
We want to link statically to freetype because we had to make some small
changes to freetype, but ld can't seem to find any freetype functions. When
I force my program to do static linking, either by using "-static" or
cinfiguring freetype with --disable-shared, the link fails. It works fine
if I use shared libraries.
-Tony
P.S.
Here are the changes we made to Freetype 2.0.9:
In the functon "FT_Set_Char_Size"
changed lines 1657 and 1658 of "src/base/ftobjs.c"
< dim_x = ( ( ( char_width * horz_resolution ) / 72 ) + 32 ) & -64;
< dim_y = ( ( ( char_height * vert_resolution ) / 72 ) + 32 ) & -64;
---
dim_x = ( char_width * horz_resolution ) / 72;
dim_y = ( char_height * vert_resolution ) / 72;
In the functon "T1_Face_Init"
replaced lines 377 and 378 of "src/type1/t1objs.c"
< root->style_name = ( *full == ' ' ? full + 1
< : (char *)"Regular" );
---
if( *full == ' ' )
root->style_name = full + 1;
else if(*full)
root->style_name = full;
else
root->style_name = (char *)"Regular";
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
- [Freetype] problem with static linking,
Anthony Feick <=