[tex-live] Unneeded linking in mf and xdvi-xaw?
Frank Küster
frank at kuesterei.ch
Thu Jun 18 22:00:28 CEST 2009
Hi,
our Debian tools complain that mf and xdvi-xaw are linked against
libXext, libSM and libICE, although the don't use any symbols from them.
SM and ICE seem to come from X_PRE_LIBS and this in source/configure
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi
I'm not educated enough in this configure stuff to grok the part where
this monster variable is set. But I tend to believe that the Debian tool
is right, and the linking is wrong. At least for mf and xdvi-xaw, which
is why I'll apply the following patch for the time being. Comments?
Regards, Frank
--8<---------------cut here---------------start------------->8---
Index: texlive-bin-2009~svn13813/texk/web2c/Makefile.in
===================================================================
--- texlive-bin-2009~svn13813.orig/texk/web2c/Makefile.in 2009-06-18 19:33:33.000000000 +0000
+++ texlive-bin-2009~svn13813/texk/web2c/Makefile.in 2009-06-18 19:51:30.000000000 +0000
@@ -1348,7 +1348,7 @@
@MFN_TRUE at mf_nowin_CPPFLAGS = $(X_CFLAGS) -DMFNOWIN
@MFN_TRUE at mf_nowin_LDADD = libmf.a $(LDADD) $(windowlib)
windowlib = window/libwindow.a
-mf_x_libs = $(X_LIBS) $(x_tool_libs) $(X_PRE_LIBS) $(x_ext_lib) $(wlibs) $(X_EXTRA_LIBS)
+mf_x_libs = $(X_LIBS) $(x_tool_libs) $(wlibs) $(X_EXTRA_LIBS)
# Metafont C sources
mf_c_h = mfini.c mf0.c mf1.c mfcoerce.h mfd.h
Index: texlive-bin-2009~svn13813/texk/xdvik/Makefile.in
===================================================================
--- texlive-bin-2009~svn13813.orig/texk/xdvik/Makefile.in 2009-06-18 19:48:22.000000000 +0000
+++ texlive-bin-2009~svn13813/texk/xdvik/Makefile.in 2009-06-18 19:51:13.000000000 +0000
@@ -374,7 +374,7 @@
x_ldflags = $(X_LIBS) $(x_linker_options) $(iconv_libpath)
x_extra_libs = $(X_EXTRA_LIBS) $(iconv_libs)
xdvi_x_libs = $(x_ldflags) $(x_tool_libs) $(x_xmu_lib) -lXt \
- $(X_PRE_LIBS) $(x_ext_lib) $(x_xpm_libs) -lX11 $(x_extra_libs)
+ $(x_xpm_libs) -lX11 $(x_extra_libs)
common_ldadd = $(KPATHSEA_LIBS) $(T1LIB_LIBS) $(xdvi_x_libs)
common_dependencies = $(KPATHSEA_DEPEND) $(T1LIB_DEPEND)
libxdvi_dependencies = ${top_srcdir}/*.[ch] ${top_srcdir}/gui/*.[ch] ${top_builddir}/psheader.c
--8<---------------cut here---------------end--------------->8---
--
Dr. Frank Küster
Debian Developer (TeXLive)
VCD Aschaffenburg-Miltenberg, ADFC Miltenberg
B90/Grüne KV Miltenberg
More information about the tex-live
mailing list