This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: AIX & shared libstdc++
- To: pooh at msu dot ru (Andrey Slepuhin), egcs at cygnus dot com
- Subject: Re: AIX & shared libstdc++
- From: Jason Merrill <jason at cygnus dot com>
- Date: 07 Oct 1997 03:13:53 -0700
- References: <3439FE5B.53F1D3CC.cygnus.egcs@msu.ru>
>>>>> Andrey Slepuhin <pooh@msu.ru> writes:
> I tried to build egcs-970929 on AIX 4.2.1 configured with
> --enable-shared
> option. The resulting shared libstdc++ was only ~600K instead of ~3M
> static one.
> This is because AIX linker does not know what symbols must be exported.
> PS: Passing option -unix to linker is incorrect on AIX, because AIX
> linker recognize it as option -u with a parameter "nix". As a result
> there are many linker warnings.
GCC support for shared libraries on AIX requires GNU ld, which supports the
-unix flag.
Jason