[tlbuild] linking against expat ... why

Vladimir Volovich vvv at vsu.ru
Wed Aug 26 16:52:05 CEST 2009


"NP" == Norbert Preining writes:

 NP> Hi everyone, maybe one of you can help me. I am investigating why
 NP> on earth xetex is linked to libexpat while it does definitely NOT
 NP> use any symbols directly, but only via usage of libfontconfig.

 NP> I thought that adding --as-needed to the ldflags via
 NP> -Wl,--as-needed should do that trick, but it doesn't because the
 NP> -lexpat is not given directly on the cmd line nor anywhere else. It
 NP> is included out of pure magic and I have no idea why.

 NP> Anyone of you?

some shared library dependencies shown by "ldd" are indirect, caused by
other shared libraries (e.g. libfontconfig).

could you run

  strings -a xetex | grep '\.so'

to see which are the direct shared library dependencies?

Best,
v.


More information about the tlbuild mailing list