AIX & shared libstdc++
Jason Merrill
jason@cygnus.com
Tue Oct 7 03:15:00 GMT 1997
>>>>> 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
More information about the Gcc
mailing list