libstdc++ libtool lossage
David Edelsohn
dje@watson.ibm.com
Sat Feb 23 01:56:00 GMT 2002
My change making "gcc -shared-libgcc" only link with libgcc.so
breaks assumptions by the g++ and g77 drivers that the flag is intended
for linking executables with both libgcc.so and libgcc.a, not linking
shared libraries.
"gcc -shared" is suppose to create shared libraries and should
only link with libgcc.so. I respectfully submit that if libtool does not
understand that, libtool should be fixed. "gcc -shared-libgcc -shared" is
redundant and does not make sense. "gcc -shared" was suppose to provide
the semantics you are desiring. Suggesting the use of "gcc
-shared-libgcc" was a misunderstanding of that option.
I recommend that both my init_gcc_specs change affecting
-shared-libgcc and the CXX_FOR_TARGET patch using "gcc -shared-libgcc" be
removed and that some other way be found for libtool to work properly with
the new binutils. If libtool needs to see a flag, would changing the
CXX_FOR_TARGET patch from "-shared-libgcc" to "-shared" solve the problem?
Thanks, David
More information about the Gcc-patches
mailing list