This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]