Martin Vermeer wrote:
> Getting better still. It builds! And works after building... I opened
> and moved around in a production file with it.

Well done!!!

> This is needed:
> 2) Then, in the makefiles of src and src/tex2lyx I had to add to
> LDFLAGS:
> -lpthread -lstlport_gcc
> (I didn't find a way to do that in configure)

CXXFLAGS_STLPORT=...
LDFLAGS_STLPORT=...
./configure CXXFLAGS=${CXXFLAGS_STLPORT} LDFLAGS=${LDFLAGS_STLPORT}

Best to wrap all this up inside a little configure_stlport script.

> Then, before running,
> export LD_LIBRARY_PATH=/home/mv/STLport-4.5.3/lib

If you set your PATH to something like
PATH=/home/mv/bin:$PATH
at login, then you could add a little wrapper script /home/mv/bin/lyx

#! /bin/sh
export LD_LIBRARY_PATH=/home/mv/STLport-4.5.3/lib
/usr/bin/lyx $*

> Except for a number of smaller patches to the source, see attached.
> I assume you will want to tinker with this, packing some of them in
> CXX_GLOBAL_CSTD conditionals etc. Please advise.

The only thing that looks suspicious is the block
+#if 0
 #ifndef CXX_GLOBAL_CSTD
 #endif
+#endif

Do you really need them?

> 3) This uses the STLport iostreams library, which must be built (I
> used 'make -f gcc_linux.mak prepare' and 'make -f gcc-linux.mak all'
> in src IIRC)
> Would it be very hard to get this into the config system?

I don't think that there is any point. You only need to build the STLport 
iostreams library once. As for passing options to configure and setting 
LD_LIBRARY_PATH, well you should definitely use the little wrapper script 
approach.

> (To tickle your sense of humour: I found getting gcc3 to work
> in a private dir actually easier!)

Of course ;-)
-- 
Angus

Reply via email to