If anyone is interested in this, perhaps it belongs in a new thread ?Apropos libfontconfig, I booted a *nix system for the first time after a busy month, and looked into this. I found that there already is an override in the code, at least in trunk, try the following:
1. put unit libfontconfig in your uses.
2. put LoadFontConfigLib('libfontconfig.so.666',false);
as first line in your .lpr to try to load libfontconfig.so.666 before the rest is tried. Untested, no guarantees, but worth a try.
Thanks Marcov. I have been travelling but finally got around to building a FPC without my patch to test your idea. Not sure where 'libfontconfig.so.666' comes from, but applying your logic to 'libfontconfig.so.1' almost works ! But not quite.
While it is possible to preempt libfontconfig.pp's attempt to load "libfontconfig.so" by calling LoadFontConfigLib('libfontconfig.so.1', false) earlier, its not useful because (eg) fptty.pp later calls LoadFontConfigLib('') and that triggers an EInOutException when it finds the library is already loaded. fptty.pp sees the Exception and refuses to proceed.
That Exception appears to be inappropriate in my view.
I have tested proceeding without an Exception if the library is already loaded and it worked, on my system, as it should.
That is, however, a far more obtrusive change than the earlier suggested one.
So, setting the DefaultLibName, for Linux, to 'libfontconfig.so.1' is still my recommendation.
Davo
PS : I will add my notes to the bug report if no one disputes them, save someone else from starting from scratch.