This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
another patch to use g++ under MSDOS
- To: egcs at cygnus dot com, gcc2 at cygnus dot com
- Subject: another patch to use g++ under MSDOS
- From: Marc Lehmann <pcg at goof dot com>
- Date: Wed, 15 Oct 1997 22:59:20 +0200 (CEST)
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"