I need to build Qt statically on red hat 5.3 . I need to provide fontconfig because the version on redhat is missing a symbol. How would I modify the files to make it use the fontconfig that I will provide. I have been able to build qt4.6 apps with a dynamic version of qt libraries by simply providing the library with LIBS += /path/to/my/libfontconfig.so.1.4.4 but I want to deploy a standalone application but I cannot build qt now because of the missing symbol. Is it ok to provide a dynamic fontconfig library to build qt statically or should i specify the static version of the fontconfig lib im using. I found /qt/config.tests.x11.fontconfig/fontconfig.pro in which it says LIBS+= -lfreetype -lfontconfig. Now I am going to replace -lfontconfig with a direct link to my lib but is that enough? Here is the error I got: "In function 'registerFont(QFontDatabasePrivate::ApplicationFon t*)':qfontdatabase.cpp.text+0x2dcd):undefined reference to 'FcFreeTypeQueryFace'