This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++ libtool lossage
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Richard Henderson <rth at redhat dot com>, aoliva at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 17 Feb 2002 18:01:44 -0500
- Subject: Re: libstdc++ libtool lossage
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