Skip to content

Commit b31426d

Browse files
committed
www/nginx: fix build with a third-party passenger module
PR: 275161 Sponsored by: Netzkommune GmbH
1 parent 752b25a commit b31426d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎www/nginx/Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PORTNAME= nginx
22
PORTVERSION= 1.24.0
3-
PORTREVISION?= 12
3+
PORTREVISION?= 13
44
PORTEPOCH= 3
55
CATEGORIES= www
66
MASTER_SITES= https://nginx.org/download/ \
@@ -240,6 +240,10 @@ CONFIGURE_ENV+= OPTIMIZE="yes"
240240
CFLAGS+= -DNDEBUG
241241
.endif
242242

243+
.if ${PORT_OPTIONS:MPASSENGER}
244+
CONFIGURE_ENV+= EXTRA_PRE_CXXFLAGS="-std=c++14"
245+
.endif
246+
243247
# Fix build failure on clang >= 12
244248
.if ${PORT_OPTIONS:MHTTP_PERL} && ${OSVERSION} >= 1301000
245249
CFLAGS+= -Wno-compound-token-split-by-macro

0 commit comments

Comments
 (0)