[tex-live] New binaries (and problems:)
Thomas Esser
te at dbs.uni-hannover.de
Fri May 23 21:10:55 CEST 2003
On Fri, May 23, 2003 at 01:43:24PM -0400, Karl Berry wrote:
> --disable-shared might be a solution, however, not for compiling TL,
> but for compiling gcc.
>
> I don't understand? Even when libstdc++.so is created in a gcc
> installation (as it is by default), so is libstdc++.a. So it is
C++ binaries compiled / linked with gcc-3.2.2 depend on libgcc_s which
is only build as a shared library. If you can tell me how to link the C++
runtime statically with gcc 3.x, I'd be very happy to hear about it.
To give you a start, here is what I am trying:
$ cat conftest.C
#include <iostream.h>
int main()
{
cout <<"worksok\n";
}
$ c++ conf.C -nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
$ ldd a.out
...
libgcc_s.so.1 => /software/oss/Development/gcc-3.2.2/lib/libgcc_s.so.1 (0x40043000)
...
If you can somehow modify the c++ command to work without that -lgcc_s,
that would be great. With gcc-2.x, I can just omit -lgcc_s, but the problem
is gcc-3.
Thomas
More information about the tex-live
mailing list