Skip to content

Commit 999ad9d

Browse files
committed
Fixed frankenphp build
1 parent 7a80c35 commit 999ad9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,10 @@ RUN apk add --no-cache go~=1.23 --virtual .go-build-deps \
308308
&& find / | grep php | grep .so \
309309
&& git clone https://github.com/dunglas/frankenphp.git --recursive --branch v1.4.0 --single-branch \
310310
&& cd /opt/frankenphp/caddy/frankenphp \
311+
&& sed -i -e "s/lphp/l${PHP_PACKAGE_BASENAME}/g" ../../frankenphp.go \
311312
&& export PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `php-config --includes`" \
312313
&& export PHP_CPPFLAGS="$PHP_CFLAGS" \
313-
&& export PHP_LDFLAGS="-Wl,-O1 -pie `php-config --ldflags` `php-config --libs` -Wl,-rpath,/usr/lib/${PHP_PACKAGE_BASENAME} -L/usr/lib/${PHP_PACKAGE_BASENAME}" \
314+
&& export PHP_LDFLAGS="-Wl,-O1 -pie `php-config --ldflags`" \
314315
&& export CGO_LDFLAGS="$PHP_LDFLAGS" CGO_CFLAGS=$PHP_CFLAGS CGO_CPPFLAGS=$PHP_CPPFLAGS \
315316
&& go build \
316317
&& rm -rf /root/.cache /root/go \

0 commit comments

Comments
 (0)