Skip to content

Commit 72395b6

Browse files
committed
Fix issue with including mbstring to binary while building with alpine
1 parent 1320c1c commit 72395b6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

build-alpine

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ install_deps() {
1111
arch=$(arch)
1212
# Do basic configuration of the system, and install build tools
1313
apk update && \
14-
apk add binutils cmake make libgcc musl-dev gcc g++ perl linux-headers && \
14+
apk add binutils cmake make libgcc musl-dev gcc g++ perl \
15+
oniguruma-dev linux-headers file && \
1516
ln -s "/usr/bin/${arch}-alpine-linux-musl-gcc-ar" "/usr/bin/${arch}-alpine-linux-musl-ar" && \
1617
ln -s "/usr/bin/${arch}-alpine-linux-musl-gcc-ranlib" "/usr/bin/${arch}-alpine-linux-musl-ranlib" && \
1718
ln -s "/usr/bin/${arch}-alpine-linux-musl-gcc-nm" "/usr/bin/${arch}-alpine-linux-musl-nm" && \
@@ -23,7 +24,7 @@ install_deps() {
2324
}
2425

2526
install_dev_deps() {
26-
apk add oniguruma-dev gmp-dev
27+
apk add gmp-dev
2728

2829
test -d libzip-1.9.2 && rm -f $_
2930
curl -sSL https://github.com/nih-at/libzip/releases/download/v1.9.2/libzip-1.9.2.tar.gz | tar -xzf -
@@ -57,6 +58,7 @@ ENABLE_STATIC=yes
5758
--enable-sockets \
5859
--enable-zts --enable-parallel \
5960
--with-openssl --with-zlib \
61+
--enable-mbstring \
6062
"${BUILD_EXTRA[@]}"
6163

6264
sed -ie 's/PHP_INI_ENTRY("openssl.cafile", NULL, PHP_INI_PERDIR, NULL)/PHP_INI_ENTRY("openssl.cafile", "\/etc\/ssl\/cert.pem", PHP_INI_PERDIR, NULL)/g' ext/openssl/openssl.c

0 commit comments

Comments
 (0)