LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   libgcc_s.a is referenced in ldd (https://www.linuxquestions.org/questions/aix-43/libgcc_s-a-is-referenced-in-ldd-652890/)

bean66 07-01-2008 02:52 PM

libgcc_s.a is referenced in ldd
 
On aix 5.3 using gcc version 4.2.4 I get the following output from ldd.
What causes libgcc_s.a to be part of the binary?

Or better, how can i prevent libgcc_s.a to be part of the binary? I've tried rebuilding gcc using configure -disable-shared to no avail.


Thanks,
ken

ajax:ajax102:/home/n/ix_/src/server>> ldd 102/ixp_server
102/ixp_server needs:
/usr/lib/libc.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libbsd_r.a(shr.o)
/home/oracle/products/v102/lib32//libclntsh.a(shr.o)
/unix
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libdl.a(shr.o)
/usr/lib/libodm.a(shr.o)
/usr/lib/libperfstat.a(shr.o)
/usr/local/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/../../../libgcc_s.a(shr.o)
/usr/lib/libpthread.a(shr_xpg5.o)
/usr/lib/libcfg.a(shr.o)
/usr/lib/liblvm.a(shr.o)

bean66 07-02-2008 02:42 PM

Ok,

I figured the problem out and thought I'd post my resolution so maybe it will help others.

rebuild GCC using -disable-shared.
Rebuild all libraries that were being linked that were built with the old version of gcc.


All times are GMT -5. The time now is 12:50 PM.