This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: libgcc_s
- From: Perry Smith <pedz at easesoftware dot com>
- To: Perry Smith <pedz at easesoftware dot com>
- Cc: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Sun, 7 Jan 2007 17:38:18 -0600
- Subject: Re: libgcc_s
- References: <9D8F3A34-F1F2-4EF3-8254-56EFAC5428BF@easesoftware.com>
On Jan 7, 2007, at 12:57 PM, Perry Smith wrote:
I'm trying to ship an executable on AIX that is compiled and linked
g++. (g++ is calling AIX's ld under the covers.)
I'm trying to figure out the best way to do it -- should I link it
statically or should I also ship the extra libgcc and libstdc++
libraries? In the process of weighing the pros and cons, I noticed
that the executable is not using libgcc.a but libgcc_s.a.
Can someone tell me what libgcc_s.a is? How does libgcc.a differ
from libgcc_s.a? I can't find a reference to it in the gcc manual.
My real question is when does g++ use one or the other? If I
automate the packaging, it needs to know which one to ship.
Another thing that would help me is to understand why is libgcc_s.a
at the top of /usr/local/lib and not in a platform specific, gcc
level specific directory like /usr/local/lib/gcc/powerpc-ibm-
aix5.3.0.0/4.0.2?
The same is true for libstdc++.a
Thank you again,
Perry Smith ( pedz@easesoftware.com )
Ease Software, Inc. ( http://www.easesoftware.com )
Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems