[tex-live] TeXlive 6b/pdfTeX and Linux 2.0
Thomas Esser
te@informatik.uni-hannover.de
Fri, 26 Oct 2001 15:50:30 +0200
> > # ldd pdftex (on a Suse 5.3 system)
> > libstdc++-libc6.1-1.so.2 => not found
> > libm.so.6 => /usr/i486-linux-libc6/lib/libm.so.6 (0x4001c000)
> > libc.so.6 => /usr/i486-linux-libc6/lib/libc.so.6 (0x40039000)
> > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> >
> > This could be easily fixed by distributing static binaries for pdf{e}TeX.
>
> if you tell me exactly what to fix in the source tree, I will do it
When g++ is used to link a binary it passes the option -lstdc++ to the
linker. To avoid a shared libstdc++, you have to
- add -static to the flags you pass to g++ when linking the binary
(bad, since this will affect all libraries, even libc)
- install a gcc which does not use a shared libstdc++ (if gcc only finds
a static libstdc++.a and no libstdc++*.so it will just use the
static version) for producing the pdf*tex binaries you are going
to redistribute
Thomas