diff --git a/Dockerfile b/Dockerfile index cdd56a9..03e0201 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,7 +50,7 @@ RUN set -xe && \ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ${BUILD_DEPS} # Install runtime dependencies for testing, building packages etc, and clean up source. -ENV RUNTIME_DEPS="build-essential git curl libedit2 libssl1.0 libxml2" +ENV RUNTIME_DEPS="build-essential git curl libssl1.0 libpcre3-dev libcurl4-openssl-dev libedit-dev libxml2-dev zlib1g-dev" RUN set -xe && \ apt-get update && apt-get install -y --no-install-recommends ${RUNTIME_DEPS} && \ cd ${PHP_SRC_DIR} && make -j "$(nproc)" PHP_SAPI=embed install-sapi install-headers && \ diff --git a/php7-static.go b/php7-static.go index 9b50bef..d454343 100644 --- a/php7-static.go +++ b/php7-static.go @@ -6,5 +6,5 @@ package php -// #cgo LDFLAGS: -ldl -lm -lssl -lcrypto -lreadline -lresolv -lpcre -lz -lxml2 +// #cgo LDFLAGS: -ldl -lm -lcurl -lpcre -lssl -lcrypto -lresolv -ledit -lz -lxml2 import "C"