Subject: CXXFLAGS for OPSYSVARS / MAKE_ENV ?
To: None <tech-pkg@NetBSD.org>
From: Marc Recht <recht@netbsd.org>
List: tech-pkg
Date: 10/27/2004 10:13:58
--Apple-Mail-2-298554211
Content-Type: multipart/mixed; boundary=Apple-Mail-1-298554200


--Apple-Mail-1-298554200
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

Hi!

I'd like to commit the attached (trivial) patch which adds CXXFLAGS to 
OPSYSVARS and MAKE_ENV. Currently this would be mostly for completeness 
(eg. CONFIGURE_ENV already has CXXFLAGS). Objections?

Cheers,
Marc


--Apple-Mail-1-298554200
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="bsd.pkg.mk.diff"
Content-Disposition: attachment;
	filename=bsd.pkg.mk.diff

Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.1525
diff -u -r1.1525 bsd.pkg.mk
--- bsd.pkg.mk	26 Oct 2004 21:14:59 -0000	1.1525
+++ bsd.pkg.mk	27 Oct 2004 08:09:44 -0000
@@ -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}"

--Apple-Mail-1-298554200--

--Apple-Mail-2-298554211
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: Signierter Teil der Nachricht
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFBf1jO7YQCetAaG3MRAgMMAJ9F9P/Zh7s/mYxvNsVFldXy+Imy7QCeOmhS
m/K57WkxF69Pf3RBPa0r5m4=
=ByDb
-----END PGP SIGNATURE-----

--Apple-Mail-2-298554211--