databases/mongodb: Pass CXXFLAGS instead of CFLAGS

Mongo is a c++ program, and the REINPLACE command was affecting the
CCFLAGS variable, not the CFLAGS variable.  In most cases, but not all,
CXXFLAGS and CFLAGS have the same value though.

Approved by:	just fix it.
This commit is contained in:
John Marino 2015-02-25 14:07:23 +00:00
parent 137a22e0a1
commit 0e773465fa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=379912

View File

@ -65,7 +65,7 @@ ALL_TARGET= core tools
.endif
post-patch:
@${REINPLACE_CMD} 's/\["-O3"\]/"${CFLAGS}"/' \
@${REINPLACE_CMD} 's/\["-O3"\]/"${CXXFLAGS}"/' \
${WRKSRC}/SConstruct
.if ${PORT_OPTIONS:MTEST}