xlc equivalent to gcc -static?

xlc equivalent to gcc -static?

Post by <a8505.. » Sat, 30 Jan 1999 04:00:00



The subject says it all :-)

What do I have to do to make xlc link statically? I need this for
binaries in a chrooted environment where I do not want the complexity
caused by shared libraries...

Thanks,

Michael

 
 
 

xlc equivalent to gcc -static?

Post by Gary Duza » Sat, 30 Jan 1999 04:00:00



> The subject says it all :-)

> What do I have to do to make xlc link statically? I need this for
> binaries in a chrooted environment where I do not want the complexity
> caused by shared libraries...

> Thanks,

> Michael

For a threaded C++ app, I specify:

   -bnoso -bI:/lib/syscalls.exp -bI:/lib/threads.exp
-bI:/usr/lpp/xlC/lib/libC.imp

This under AIX 4.2.1. You definitely need the first one, and probably the
second, but you might manage without the others.

                                        Gary Duzan
                                        GTE Laboratories