public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* another patch to use g++ under MSDOS
@ 1997-10-15 20:16 Marc Lehmann
  0 siblings, 0 replies; only message in thread
From: Marc Lehmann @ 1997-10-15 20:16 UTC (permalink / raw)
  To: egcs, gcc2

libstdc++ is named libstdcx under MSDOS (no '+' allowed).

Wed Oct 15 22:56:22 CEST 1997  Marc Lehmann (pcg@goof.com)

	* cp/g++spec.c (CPLUS_LIBRARY): New define.
	(lang_specific_driver): Use CPLUS_LIBRARY instead of
	hardcoding a string.
	* config/i386/xm-go32.h (CPLUS_LIBRARY): New define.

--- cp/g++spec.c.orig	Mon Oct 13 10:02:31 1997
+++ cp/g++spec.c	Mon Oct 13 10:02:39 1997
@@ -24,6 +24,10 @@
 #define MATH_LIBRARY "-lm"
 #endif
 
+#ifndef CPLUS_LIBRARY
+#define CPLUS_LIBRARY "-lstdc++"
+#endif
+
 extern char *xmalloc PROTO((size_t));
 
 void
@@ -220,7 +224,7 @@
 
   /* Add `-lstdc++' if we haven't already done so.  */
   if (library)
-    arglist[j++] = "-lstdc++";
+    arglist[j++] = CPLUS_LIBRARY;
   if (saw_math)
     arglist[j++] = saw_math;
   else if (library)
--- config/i386/xm-go32.h.orig	Mon Oct 13 10:05:25 1997
+++ config/i386/xm-go32.h	Mon Oct 13 10:03:21 1997
@@ -34,4 +34,5 @@
 
 #define NO_SYS_SIGLIST
 
+#define CPLUS_LIBRARY "-lstdcx"
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-10-15 20:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-15 20:16 another patch to use g++ under MSDOS Marc Lehmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).