g++spec.c (LIBSTDCXX): Provide default definition.

* g++spec.c (LIBSTDCXX): Provide default definition.
        (lang_specific_driver): Use LIBSTDCXX instead of "-lstdc++".

From-SVN: r24509
This commit is contained in:
Mark Elbrecht 1999-01-05 19:23:10 -07:00 committed by Jeff Law
parent 3d0a71b3ed
commit 18cd4dedd4
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Jan 6 03:18:53 1999 Mark Elbrecht <snowball3@usa.net.
* g++spec.c (LIBSTDCXX): Provide default definition.
(lang_specific_driver): Use LIBSTDCXX instead of "-lstdc++".
Tue Jan 5 22:11:25 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Make-lang.in (g++.o): Depend on prefix.h.

View File

@ -32,6 +32,10 @@ Boston, MA 02111-1307, USA. */
#define MATH_LIBRARY "-lm"
#endif
#ifndef LIBSTDCXX
#define LIBSTDCXX "-lstdc++"
#endif
void
lang_specific_driver (fn, in_argc, in_argv, in_added_libraries)
void (*fn)();
@ -232,7 +236,7 @@ lang_specific_driver (fn, in_argc, in_argv, in_added_libraries)
/* Add `-lstdc++' if we haven't already done so. */
if (library)
{
arglist[j++] = "-lstdc++";
arglist[j++] = LIBSTDCXX;
added_libraries++;
}
if (saw_math)