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'm not sure I understand what's to be the expected behavior of
| -shared-libgcc in the case of AIX.  You seem to have a good
| understanding of what is required to fix the problem on AIX, so how
| about suggesting a patch that would get -shared-libgcc to behave the
| way that would be convenient for AIX?

	* gcc.c (init_gcc_specs): Do not link with static libgcc.a if
	gcc invoked with -shared-libgcc.

--- /gcc/dje/src/gcc/gcc.c	Wed Feb 20 11:20:56 2002
+++ gcc.c	Thu Feb 21 23:23:37 2002
@@ -1418,7 +1417,7 @@ init_gcc_specs (obstack, shared_name, st
   const char *p;
 
   /* If we see -shared-libgcc, then use the shared version.  */
-  sprintf (buffer, "%%{shared-libgcc:%s %s}", shared_name, static_name);
+  sprintf (buffer, "%%{shared-libgcc:%s}", shared_name);
   obstack_grow (obstack, buffer, strlen (buffer));
   /* If we see -static-libgcc, then use the static version.  */
   sprintf (buffer, "%%{static-libgcc:%s %s}", static_name, eh_name);


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