Compiling Wine with static version of freetype library.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Geist
Newbie
Newbie
Posts: 1
Joined: Thu Feb 14, 2013 9:24 am

Compiling Wine with static version of freetype library.

Post by Geist »

What would I need to pass to ./configure to only statically link freetype?

I'm using Slackware 14, 32 bits.

My reason for asking is:
I recompiled qt and freetype with infinality font support.
That caused Wine to be unable to find libfreetype.

I successfully compiled freetype as a static lib, the .la, .a and .lai files are all present.

LDFLAGS="-L/home/foo/cproj/freetype2/objs/.libs/ -lfreetype -L/usr/lib -ldl"

Building succeeded when freetype was also compiled with --enabled-shared and wine continued to function normally after deleting the shared version of the library.

This time I've only built the static lib, builds now fail.
Both with the above LDFLAGS as well as passing LDFLAGS the direct path to the static lib.

LDFLAGS="-L/home/foo/cproj/freetype2/objs/.libs/libfreetype.a -L/usr/lib -ldl"
LDFLAGS="-L/home/foo/cproj/freetype2/objs/.libs/libfreetype.la -L/usr/lib -ldl"

did not work.

I can get by building things myself most of the time, but I've never had to do something like this, thus, any help help will be appreciated.

Cheers!
Locked