Jean-Marc Lasgouttes wrote: > leeming> Modified files: lyx-devel/src/tex2lyx/: ChangeLog Makefile.am > > leeming> Log message: It appears that tex2lyx no longer requires > leeming> libz... > > Are you sure it does not? Here I get: > > ../../../lyx-devel/src/support/gzstream.C:61: undefined reference to > `gzopen' ../../src/support/.libs/libsupport.a(gzstream.o)(.text+0x151): > In function `gz::gzstreambuf::close()':
Interesting, no? I didn't get this on Windows because USE_COMPRESSION is not defined. I also don't get this on a FC3 machine where USE_COMPRESSION is defined. That's using g++ 3.4, so I'd guess that the linker is throwing out unused code. I also guess that your liker is less sophisticated. So, I guess that the solution is to make the linker option conditional on USE_COMPRESSION. Agree? (It works here.) Index: src/tex2lyx/Makefile.am =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/tex2lyx/Makefile.am,v retrieving revision 1.24 diff -u -p -r1.24 Makefile.am --- src/tex2lyx/Makefile.am 2 Feb 2005 18:39:59 -0000 1.24 +++ src/tex2lyx/Makefile.am 3 Feb 2005 15:30:19 -0000 @@ -17,6 +17,10 @@ AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/. BOOST_LIBS = $(BOOST_REGEX) $(BOOST_FILESYSTEM) +if USE_COMPRESSION +COMPRESSIONLIB = -lz +endif + BUILT_SOURCES = \ FloatList.C \ Floating.C \ @@ -50,7 +54,7 @@ tex2lyx_SOURCES = \ tex2lyx_LDADD = \ $(top_builddir)/src/support/libsupport.la \ - $(BOOST_LIBS) + $(BOOST_LIBS) $(COMPRESSIONLIB) $(BUILT_SOURCES) : @rm -f $@ ; \ -- Angus