Skip to content

Commit 07518a7

Browse files
authored
don't overwrite SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES unconditionally (#2135)
fixes #2134 Signed-off-by: Marc <m@pyc.ac>
1 parent 38bcace commit 07518a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build-static.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ else
198198
SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS="${SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS} -fPIE -fstack-protector-strong -O2 -w -s"
199199
fi
200200
export SPC_CMD_VAR_PHP_MAKE_EXTRA_CFLAGS
201-
export SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES="--with github.com/dunglas/mercure/caddy --with github.com/dunglas/vulcain/caddy --with github.com/dunglas/caddy-cbrotli"
201+
if [ -z "$SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES" ]; then
202+
export SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES="--with github.com/dunglas/mercure/caddy --with github.com/dunglas/vulcain/caddy --with github.com/dunglas/caddy-cbrotli"
203+
fi
202204

203205
# Build FrankenPHP
204206
${spcCommand} doctor --auto-fix

0 commit comments

Comments
 (0)