Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between libgcc.a and libgcc_s.a?

Tags:

c

aix

gcc

We have installed GCC and libgcc on AIX 6.1 using the RPM files.

What I would like to know is why "libgcc_s.a" was not created under the following folder?

/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/

There is a libgcc.a in that folder but not libgcc_s.a and the linker seems to want that libgcc_s.a file there

Reason I ask is if I try create a simple "hello world" type shared lib on AIX 6.1 it complains and says someting like "cannot find libgcc_s.a".

I have run a command like:

find / -name '*libgcc*' -print 2>/dev/null

to try find libgcc_s.a on tha machine but there is nothing ;-(

Any idea how I can get libgcc_s.a onto the AIX machine?

like image 397
Lynton Grice Avatar asked Oct 18 '11 18:10

Lynton Grice


1 Answers

You might try to compile using the option -static-libgcc.

like image 112
alk Avatar answered Sep 24 '22 20:09

alk