This is the mail archive of the gcc-patches@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


	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


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