pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk - Allow CXXFLAGS to be set on a per-OS basis (read ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ca873f3c1850
branches: trunk
changeset: 482414:ca873f3c1850
user: recht <recht%pkgsrc.org@localhost>
date: Wed Oct 27 21:45:53 2004 +0000
description:
- Allow CXXFLAGS to be set on a per-OS basis (read added to OPSYSVARS).
- Set CXXFLAGS in the MAKE_ENV (if defined).
diffstat:
mk/bsd.pkg.mk | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 9640603d85c2 -r ca873f3c1850 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Wed Oct 27 20:31:33 2004 +0000
+++ b/mk/bsd.pkg.mk Wed Oct 27 21:45:53 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1527 2004/10/27 13:47:41 tv Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1528 2004/10/27 21:45:53 recht Exp $
#
# This file is in the public domain.
#
@@ -80,7 +80,7 @@
.endif
# Allow variables to be set on a per-OS basis
-OPSYSVARS+= CFLAGS CPPFLAGS LDFLAGS LIBS
+OPSYSVARS+= CFLAGS CXXFLAGS CPPFLAGS LDFLAGS LIBS
.for _var_ in ${OPSYSVARS:O}
. if defined(${_var_}.${OPSYS})
${_var_}+= ${${_var_}.${OPSYS}}
@@ -475,6 +475,9 @@
.if defined(CPP) && !defined(NO_EXPORT_CPP)
MAKE_ENV+= CPP="${CPP}"
.endif
+.if defined(CXXFLAGS)
+MAKE_ENV+= CXXFLAGS="${CXXFLAGS}"
+.endif
# export the flags needed to compile and link pthreaded code
MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
Home |
Main Index |
Thread Index |
Old Index