This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libgcc_s



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]