This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
static libgcc_s.a?
- From: Maarten Thibaut <mthibaut at cisco dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Aug 2006 18:20:56 +0200 (CEST)
- Subject: static libgcc_s.a?
Hi,
Can libgcc_s.so be made static, resulting in a libgcc_s.a?
The reason I'm asking this is that on Solaris, libgcc_s.so can't be made
available using LD_LIBRARY_PATH (I haven't tested LD_PRELOAD). In our
environment this means that if I compile a program on an NFS client that
has gcc at /opt/local/gcc/4.1.1/bin/gcc, it automatically means I need to
copy over /opt/local/gcc/4.1.1/lib/libgcc_s.so to any host that isn't an
NFS client - like one of our servers.
This pollutes the directory structure on our servers and it's our major
reason for preferring Sun Studio over gcc. Can we fix this on our side by
compiling libgcc_s statically?
thanks,
maarten