Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk add a new bsd.own.mk variable: CXX_SUPCXX. from bs...



details:   https://anonhg.NetBSD.org/src/rev/603394e88258
branches:  trunk
changeset: 549939:603394e88258
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jul 26 14:58:10 2003 +0000

description:
add a new bsd.own.mk variable: CXX_SUPCXX.  from bsd.README:
+ CXX_SUPCXX    If defined, the support libraries needed for this C++ program
+               are set to `-lsupc++ -lm', rather than `-lstdc++ -lm'.

diffstat:

 share/mk/bsd.README  |  5 ++++-
 share/mk/bsd.prog.mk |  6 +++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 9e2ea893797b -r 603394e88258 share/mk/bsd.README
--- a/share/mk/bsd.README       Sat Jul 26 14:55:12 2003 +0000
+++ b/share/mk/bsd.README       Sat Jul 26 14:58:10 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.README,v 1.127 2003/07/23 14:53:57 lukem Exp $
+#      $NetBSD: bsd.README,v 1.128 2003/07/26 14:58:10 mrg Exp $
 #      @(#)bsd.README  8.2 (Berkeley) 4/2/94
 
 This is the README file for the new make "include" files for the BSD
@@ -758,6 +758,9 @@
                compiler rather than the C compiler.  PROG_CXX overrides
                the value of PROG if PROG is also set.
 
+CXX_SUPCXX     If defined, the support libraries needed for this C++ program
+               are set to `-lsupc++ -lm', rather than `-lstdc++ -lm'.
+
 PROGNAME       The name that the above program will be installed as, if
                different from ${PROG}.
 
diff -r 9e2ea893797b -r 603394e88258 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk      Sat Jul 26 14:55:12 2003 +0000
+++ b/share/mk/bsd.prog.mk      Sat Jul 26 14:58:10 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.prog.mk,v 1.173 2003/07/20 17:01:58 lukem Exp $
+#      $NetBSD: bsd.prog.mk,v 1.174 2003/07/26 14:58:11 mrg Exp $
 #      @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -120,7 +120,11 @@
 
 .if defined(PROG_CXX)
 _CCLINK=       ${CXX}
+.if defined(CXX_SUPCXX)
+_SUPCXX=       -lsupc++ -lm
+.else
 _SUPCXX=       -lstdc++ -lm
+.endif
 .else
 _CCLINK=       ${CC}
 .endif



Home | Main Index | Thread Index | Old Index