[tlbuild] xetex and xdvipdfmx: explicit dependency on external libfreetype and libz
Peter Breitenlohner
peb at mppmu.mpg.de
Sun May 17 13:58:41 CEST 2009
On Fri, 15 May 2009, Vladimir Volovich wrote:
> PB> I assume your concern is that xetex and xdvipdfmx explicitly depend
> PB> on libfreetype.so, libexpat.so, and libz.so (each probably with the
> PB> major version number encoded into libfontconfig.so on the build
> PB> system).
>
> What i want to achieve is to have a direct (explicit) dependency (for xetex and
> xdvipdfmx) only on libfontconfig.so, but to have the rest of
> dependencies (on libfreetype, libiconv, libz, libexpat) as indirect
> dependencies "inherited" from libfontconfig.so.
Hi Vladimir,
yes, that is exactly what I said above (or at least wanted to say).
> as far as i see, a fix for xetex is simple one, something like this:
>
> ========================
> --- texk/web2c/xetexdir/am/xetex.am (revision 13098)
> +++ texk/web2c/xetexdir/am/xetex.am (working copy)
> @@ -36,7 +36,7 @@
>
> xetex_cppflags += -DXETEX_OTHER
> xetex_cppflags += $(XPDF_INCLUDES) $(LIBPNG_INCLUDES) $(FONTCONFIG_INCLUDES)
> -xetex_ldadd += $(XPDF_LIBS) $(LIBPNG_LIBS) $(FONTCONFIG_LIBS)
> +xetex_ldadd += $(XPDF_LIBS) $(LIBPNG_LIBS)
> xetex_dependencies += $(XPDF_DEPEND) $(LIBPNG_DEPEND)
>
> endif !XETEX_MACOSX
> @@ -53,6 +53,12 @@
> xetex_ldadd += $(FREETYPE2_LIBS) $(ZLIB_LIBS)
> xetex_dependencies += $(FREETYPE2_DEPEND) $(ZLIB_DEPEND)
>
> +if !XETEX_MACOSX
> +
> +xetex_ldadd += $(FONTCONFIG_LIBS)
> +
> +endif !XETEX_MACOSX
> +
> xetex_CPPFLAGS = $(xetex_cppflags)
>
> ## With --enable-ipc, XeTeX may need to link with -lsocket.
> ========================
>
> at least it should not do any harm, right? and it does prevent the
> direct dependency on system libfreetype.so.6 and libz.so here.
Yes it certainly works in your case, has no effect for (my) linux and may
cause unresolved symbols on cygwin.
Please read all of my previous mail.
> so i'm trying to avoid unnecessary direct dependencies on system libfreetype
> and libz.
I fully agree with this goal, but don't see any way to achieve that goal in
a portable way.
Regards
Peter
[A
More information about the tlbuild
mailing list