Difference between libgcc.a and libgcc_s.a?

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

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

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

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

The reason I ask if I try to create a simple hello world section on AIX 6.1, he complains and says the following: "cannot find libgcc_s.a" .

I have a command like:

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

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

Any idea how I can get libgcc_s.a on an AIX machine?

+8
c gcc aix
source share
2 answers

You can try to compile using the -static-libgcc .

+2
source share

You might want to create gcc with the --enable-shared option.

0
source share

All Articles