libstdc++ libtool lossage
David Edelsohn
dje@watson.ibm.com
Sun Feb 17 15:10:00 GMT 2002
I thought that "gcc -shared" was suppose to link against
libgcc.so. The ENABLE_SHARED_LIBGCC definition of init_gcc_specs creates:
%{shared-libgcc:-lgcc_s%M -lgcc}
%{static-libgcc:-lgcc -lgcc_eh}
%{!shared-libgcc:%{!static-libgcc:%{shared:-lgcc_s%M}}}
%{!shared-libgcc:%%{!static-libgcc:%%{!shared:-lgcc -lgcc_eh}}}
If -shared-libgcc, link shared libgcc. If -static-libgcc, link static
libgcc. If neither shared-libgcc nor static-libgcc explicit, depend on
-shared.
Also, I completely agree that libtool is overkill for libstdc++.
I found it much easier to get GCC to generate a shared libstdc++ on AIX
for libstdc++-v2 than libstdc++-v3. In fact, I had already completed that
just when GCC switched to V3.
David
More information about the Gcc
mailing list