aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/compile-php-to-wasm/Dockerfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-09 08:50:49 +0900
committernsfisis <nsfisis@gmail.com>2024-07-09 08:50:49 +0900
commit0b4ee08d4fc54ef4533922a1cc47f53696c17981 (patch)
treed9d1f60b033a3ac44e5009585348d74c2a937a43 /examples/compile-php-to-wasm/Dockerfile
parent925f7f4a11341fb950f4f6cd6390187b780ba419 (diff)
downloadphp-waddiwasi-0b4ee08d4fc54ef4533922a1cc47f53696c17981.tar.gz
php-waddiwasi-0b4ee08d4fc54ef4533922a1cc47f53696c17981.tar.zst
php-waddiwasi-0b4ee08d4fc54ef4533922a1cc47f53696c17981.zip
fix: suppress munmap() errors
Diffstat (limited to 'examples/compile-php-to-wasm/Dockerfile')
-rw-r--r--examples/compile-php-to-wasm/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/compile-php-to-wasm/Dockerfile b/examples/compile-php-to-wasm/Dockerfile
index 1bdef61..eb58f15 100644
--- a/examples/compile-php-to-wasm/Dockerfile
+++ b/examples/compile-php-to-wasm/Dockerfile
@@ -11,6 +11,7 @@ RUN apt-get update && \
&& \
:
+# Define ZEND_MM_ERROR=0 for suppressing munmap() errors.
RUN cd php-src && \
./buildconf --force && \
emconfigure ./configure \
@@ -28,7 +29,7 @@ RUN cd php-src && \
--without-pdo-sqlite \
--without-sqlite3 \
&& \
- EMCC_CFLAGS='-s ERROR_ON_UNDEFINED_SYMBOLS=0' emmake make -j$(nproc) && \
+ EMCC_CFLAGS='-s ERROR_ON_UNDEFINED_SYMBOLS=0 -D ZEND_MM_ERROR=0' emmake make -j$(nproc) && \
mv libs/libphp.a .. && \
make clean && \
git clean -fd && \