This is the mail archive of the
mailing list for the GCC project.
-lgcc_s not found (was Re: Antwort: Re: g++301 on sol8: how to link to some static and some dynamic links)
- To: Bruno dot Voigt at ic3s dot de
- Subject: -lgcc_s not found (was Re: Antwort: Re: g++301 on sol8: how to link to some static and some dynamic links)
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Wed, 31 Oct 2001 11:46:25 -0500
- Cc: gcc at gcc dot gnu dot org
- References: <OF00A7BAEE.21508461-ONC1256AF6.002E06A9@ic3s.de>
On Wed, Oct 31, 2001 at 09:35:54AM +0100, Bruno.Voigt@ic3s.de wrote:
> Hello Phil, thanks for your link.
> Now I changed the g++ link call and pass "-Xlinker -Bstatic -lstdc++ -lc
> -lnsl -lsocket -Xlinker -Bdynamic (some oracle .so)"
> and got a more gcc related problem: "ld: fatal: library -lgcc_s: not found"
> But I did not specify "-lgcc_s" and I have seen that there is only a
> libgcc_s.so which I do not want,
> all gcc stuff should be static and only the oracle stuff dynamically
> So I do not fully understand what is going on, why this is the expected
As for the "not found" problem, you might want to search the GCC mailing
list archives. I have seen that problem report before but don't recall
the problem, the solution, nor the workaround offhand.
As for needing libgcc_s.so in the first place... some libraries will only
work dynamically. If you need libgcc_s at all (and the linker seems
to think that you do), then you will have to link to it dynamically.
There are other libraries on Solaris that work the same way (libdl and
libc_psr for instance).
I am not an expert on the libgcc_s issues. Hopefully others on this list
will take this opportunity to fill in what I've left out.
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams