Add explicit "--build" to our "./configure" invocations

This commit is contained in:
Tianon Gravi
2017-05-10 11:14:13 -07:00
parent 3712f02b70
commit 6844e717a5
45 changed files with 327 additions and 10 deletions

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -88,6 +89,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -99,7 +101,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -117,6 +121,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -9,6 +9,7 @@ FROM alpine:3.4
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
@ -89,10 +90,12 @@ COPY docker-php-source /usr/local/bin/
RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
coreutils \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
pcre-dev \
sqlite-dev \
\
&& export CFLAGS="$PHP_CFLAGS" \
@ -100,7 +103,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -118,8 +123,12 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make -j "$(nproc)" \
&& make install \
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
&& make clean \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -147,6 +148,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -158,7 +160,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -176,6 +180,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -89,6 +90,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -100,7 +102,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -118,6 +122,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -9,6 +9,7 @@ FROM alpine:3.4
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
coreutils \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
pcre-dev \
sqlite-dev \
\
&& export CFLAGS="$PHP_CFLAGS" \
@ -101,7 +104,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -119,8 +124,12 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make -j "$(nproc)" \
&& make install \
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
&& make clean \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -89,6 +90,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -100,7 +102,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -118,6 +122,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -9,6 +9,7 @@ FROM alpine:3.4
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
coreutils \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
pcre-dev \
sqlite-dev \
\
&& export CFLAGS="$PHP_CFLAGS" \
@ -101,7 +104,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -119,8 +124,12 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make -j "$(nproc)" \
&& make install \
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
&& make clean \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -88,6 +89,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -99,7 +101,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -117,6 +121,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -9,6 +9,7 @@ FROM alpine:3.4
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
@ -89,10 +90,12 @@ COPY docker-php-source /usr/local/bin/
RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
coreutils \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
pcre-dev \
sqlite-dev \
\
&& export CFLAGS="$PHP_CFLAGS" \
@ -100,7 +103,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -118,8 +123,12 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make -j "$(nproc)" \
&& make install \
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
&& make clean \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -147,6 +148,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -158,7 +160,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -176,6 +180,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -89,6 +90,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -100,7 +102,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -118,6 +122,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -9,6 +9,7 @@ FROM alpine:3.4
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
coreutils \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
pcre-dev \
sqlite-dev \
\
&& export CFLAGS="$PHP_CFLAGS" \
@ -101,7 +104,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -119,8 +124,12 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make -j "$(nproc)" \
&& make install \
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
&& make clean \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -89,6 +90,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -100,7 +102,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -118,6 +122,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -9,6 +9,7 @@ FROM alpine:3.4
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
coreutils \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
pcre-dev \
sqlite-dev \
\
&& export CFLAGS="$PHP_CFLAGS" \
@ -101,7 +104,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -119,8 +124,12 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make -j "$(nproc)" \
&& make install \
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
&& make clean \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -88,6 +89,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -99,7 +101,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -117,6 +121,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -9,6 +9,7 @@ FROM alpine:3.4
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
@ -89,10 +90,12 @@ COPY docker-php-source /usr/local/bin/
RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
coreutils \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
pcre-dev \
sqlite-dev \
\
&& export CFLAGS="$PHP_CFLAGS" \
@ -100,7 +103,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -118,8 +123,12 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make -j "$(nproc)" \
&& make install \
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
&& make clean \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -147,6 +148,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -158,7 +160,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -176,6 +180,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -89,6 +90,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -100,7 +102,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -118,6 +122,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -9,6 +9,7 @@ FROM alpine:3.4
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
coreutils \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
pcre-dev \
sqlite-dev \
\
&& export CFLAGS="$PHP_CFLAGS" \
@ -101,7 +104,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -119,8 +124,12 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make -j "$(nproc)" \
&& make install \
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
&& make clean \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -9,6 +9,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -89,6 +90,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -100,7 +102,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -118,6 +122,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -9,6 +9,7 @@ FROM alpine:3.4
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
@ -90,10 +91,12 @@ COPY docker-php-source /usr/local/bin/
RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
coreutils \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
pcre-dev \
sqlite-dev \
\
&& export CFLAGS="$PHP_CFLAGS" \
@ -101,7 +104,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -119,8 +124,12 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make -j "$(nproc)" \
&& make install \
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
&& make clean \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize

View File

@ -3,6 +3,7 @@ FROM alpine:3.4
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev dpkg \
file \
g++ \
gcc \
@ -83,10 +84,12 @@ COPY docker-php-source /usr/local/bin/
RUN set -xe \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
coreutils \
curl-dev \
libedit-dev \
libxml2-dev \
openssl-dev \
pcre-dev \
sqlite-dev \
\
&& export CFLAGS="$PHP_CFLAGS" \
@ -94,7 +97,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -112,8 +117,12 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(getconf _NPROCESSORS_ONLN)" \
&& make -j "$(nproc)" \
&& make install \
&& { find /usr/local/bin /usr/local/sbin -type f -perm +0111 -exec strip --strip-all '{}' + || true; } \
&& make clean \

View File

@ -3,6 +3,7 @@ FROM debian:jessie
# persistent / runtime deps
ENV PHPIZE_DEPS \
autoconf \
dpkg-dev \
file \
g++ \
gcc \
@ -82,6 +83,7 @@ RUN set -xe \
$PHP_EXTRA_BUILD_DEPS \
libcurl4-openssl-dev \
libedit-dev \
libpcre3-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
@ -93,7 +95,9 @@ RUN set -xe \
LDFLAGS="$PHP_LDFLAGS" \
&& docker-php-source extract \
&& cd /usr/src/php \
&& gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)" \
&& ./configure \
--build="$gnuArch" \
--with-config-file-path="$PHP_INI_DIR" \
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
\
@ -111,6 +115,11 @@ RUN set -xe \
--with-openssl \
--with-zlib \
\
# bundled pcre is too old for s390x (which isn't exactly a good sign)
# /usr/src/php/ext/pcre/pcrelib/pcre_jit_compile.c:65:2: error: #error Unsupported architecture
--with-pcre-regex=/usr \
--with-libdir="lib/$gnuArch" \
\
$PHP_EXTRA_CONFIGURE_ARGS \
&& make -j "$(nproc)" \
&& make install \

View File

@ -52,6 +52,11 @@ if [ "$pm" = 'apk' ]; then
fi
fi
if command -v dpkg-architecture > /dev/null; then
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"
set -- --build="$gnuArch" "$@"
fi
set -x
cd "$ext"
phpize