From my understanding of the discussion, you are trying to avoid linking libstdc++.so (and libgcj.so) with static libgcc.a. "gcc -shared-libgcc" automatically links with libgcc.a. Why did you install a change which links with the library you are trying to avoid and also breaks AIX before addressing this problem? David