From b42e3c877cfa41b55e20a64b7a6d6285ff5b56d7 Mon Sep 17 00:00:00 2001 From: Tristan Lins Date: Mon, 10 Jun 2019 20:06:39 +0200 Subject: [PATCH] Enable large file support on 32bit systems --- 7.1/alpine3.8/cli/Dockerfile | 3 ++- 7.1/alpine3.8/fpm/Dockerfile | 3 ++- 7.1/alpine3.8/zts/Dockerfile | 3 ++- 7.1/alpine3.9/cli/Dockerfile | 3 ++- 7.1/alpine3.9/fpm/Dockerfile | 3 ++- 7.1/alpine3.9/zts/Dockerfile | 3 ++- 7.1/jessie/apache/Dockerfile | 3 ++- 7.1/jessie/cli/Dockerfile | 3 ++- 7.1/jessie/fpm/Dockerfile | 3 ++- 7.1/jessie/zts/Dockerfile | 3 ++- 7.1/stretch/apache/Dockerfile | 3 ++- 7.1/stretch/cli/Dockerfile | 3 ++- 7.1/stretch/fpm/Dockerfile | 3 ++- 7.1/stretch/zts/Dockerfile | 3 ++- 7.2/alpine3.8/cli/Dockerfile | 3 ++- 7.2/alpine3.8/fpm/Dockerfile | 3 ++- 7.2/alpine3.8/zts/Dockerfile | 3 ++- 7.2/alpine3.9/cli/Dockerfile | 3 ++- 7.2/alpine3.9/fpm/Dockerfile | 3 ++- 7.2/alpine3.9/zts/Dockerfile | 3 ++- 7.2/stretch/apache/Dockerfile | 3 ++- 7.2/stretch/cli/Dockerfile | 3 ++- 7.2/stretch/fpm/Dockerfile | 3 ++- 7.2/stretch/zts/Dockerfile | 3 ++- 7.3/alpine3.8/cli/Dockerfile | 3 ++- 7.3/alpine3.8/fpm/Dockerfile | 3 ++- 7.3/alpine3.8/zts/Dockerfile | 3 ++- 7.3/alpine3.9/cli/Dockerfile | 3 ++- 7.3/alpine3.9/fpm/Dockerfile | 3 ++- 7.3/alpine3.9/zts/Dockerfile | 3 ++- 7.3/stretch/apache/Dockerfile | 3 ++- 7.3/stretch/cli/Dockerfile | 3 ++- 7.3/stretch/fpm/Dockerfile | 3 ++- 7.3/stretch/zts/Dockerfile | 3 ++- Dockerfile-alpine.template | 3 ++- Dockerfile-debian.template | 3 ++- 36 files changed, 72 insertions(+), 36 deletions(-) diff --git a/7.1/alpine3.8/cli/Dockerfile b/7.1/alpine3.8/cli/Dockerfile index 6ec04debd..26ef64cfe 100644 --- a/7.1/alpine3.8/cli/Dockerfile +++ b/7.1/alpine3.8/cli/Dockerfile @@ -55,7 +55,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/alpine3.8/fpm/Dockerfile b/7.1/alpine3.8/fpm/Dockerfile index b511467ba..0644c8a0b 100644 --- a/7.1/alpine3.8/fpm/Dockerfile +++ b/7.1/alpine3.8/fpm/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/alpine3.8/zts/Dockerfile b/7.1/alpine3.8/zts/Dockerfile index f1f0506b6..8e59adec8 100644 --- a/7.1/alpine3.8/zts/Dockerfile +++ b/7.1/alpine3.8/zts/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/alpine3.9/cli/Dockerfile b/7.1/alpine3.9/cli/Dockerfile index 17927addc..e91270aa6 100644 --- a/7.1/alpine3.9/cli/Dockerfile +++ b/7.1/alpine3.9/cli/Dockerfile @@ -55,7 +55,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/alpine3.9/fpm/Dockerfile b/7.1/alpine3.9/fpm/Dockerfile index 430761081..48385a1c1 100644 --- a/7.1/alpine3.9/fpm/Dockerfile +++ b/7.1/alpine3.9/fpm/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/alpine3.9/zts/Dockerfile b/7.1/alpine3.9/zts/Dockerfile index 627d5a974..6562340f7 100644 --- a/7.1/alpine3.9/zts/Dockerfile +++ b/7.1/alpine3.9/zts/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/jessie/apache/Dockerfile b/7.1/jessie/apache/Dockerfile index 82afb24b9..98dc925cd 100644 --- a/7.1/jessie/apache/Dockerfile +++ b/7.1/jessie/apache/Dockerfile @@ -114,7 +114,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/jessie/cli/Dockerfile b/7.1/jessie/cli/Dockerfile index 8473db1d3..5cbe2e0b5 100644 --- a/7.1/jessie/cli/Dockerfile +++ b/7.1/jessie/cli/Dockerfile @@ -54,7 +54,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/jessie/fpm/Dockerfile b/7.1/jessie/fpm/Dockerfile index 6b52a8b94..a63197cc6 100644 --- a/7.1/jessie/fpm/Dockerfile +++ b/7.1/jessie/fpm/Dockerfile @@ -55,7 +55,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/jessie/zts/Dockerfile b/7.1/jessie/zts/Dockerfile index a123e3fd0..c3a38077d 100644 --- a/7.1/jessie/zts/Dockerfile +++ b/7.1/jessie/zts/Dockerfile @@ -55,7 +55,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/stretch/apache/Dockerfile b/7.1/stretch/apache/Dockerfile index 9a6dbe2cc..6a0f15883 100644 --- a/7.1/stretch/apache/Dockerfile +++ b/7.1/stretch/apache/Dockerfile @@ -114,7 +114,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/stretch/cli/Dockerfile b/7.1/stretch/cli/Dockerfile index d4da5775f..97c8c9e67 100644 --- a/7.1/stretch/cli/Dockerfile +++ b/7.1/stretch/cli/Dockerfile @@ -54,7 +54,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/stretch/fpm/Dockerfile b/7.1/stretch/fpm/Dockerfile index 61691b7a4..568302a6c 100644 --- a/7.1/stretch/fpm/Dockerfile +++ b/7.1/stretch/fpm/Dockerfile @@ -55,7 +55,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.1/stretch/zts/Dockerfile b/7.1/stretch/zts/Dockerfile index 187858bfe..f05cb7632 100644 --- a/7.1/stretch/zts/Dockerfile +++ b/7.1/stretch/zts/Dockerfile @@ -55,7 +55,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.2/alpine3.8/cli/Dockerfile b/7.2/alpine3.8/cli/Dockerfile index d15517ca9..8837cfd1e 100644 --- a/7.2/alpine3.8/cli/Dockerfile +++ b/7.2/alpine3.8/cli/Dockerfile @@ -55,7 +55,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.2/alpine3.8/fpm/Dockerfile b/7.2/alpine3.8/fpm/Dockerfile index ec8f58cb0..03a5b104a 100644 --- a/7.2/alpine3.8/fpm/Dockerfile +++ b/7.2/alpine3.8/fpm/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.2/alpine3.8/zts/Dockerfile b/7.2/alpine3.8/zts/Dockerfile index 98765397e..a0c6e3c59 100644 --- a/7.2/alpine3.8/zts/Dockerfile +++ b/7.2/alpine3.8/zts/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.2/alpine3.9/cli/Dockerfile b/7.2/alpine3.9/cli/Dockerfile index cc17c65ee..fde43b6b8 100644 --- a/7.2/alpine3.9/cli/Dockerfile +++ b/7.2/alpine3.9/cli/Dockerfile @@ -55,7 +55,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.2/alpine3.9/fpm/Dockerfile b/7.2/alpine3.9/fpm/Dockerfile index 21cb1951d..7a20526dc 100644 --- a/7.2/alpine3.9/fpm/Dockerfile +++ b/7.2/alpine3.9/fpm/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.2/alpine3.9/zts/Dockerfile b/7.2/alpine3.9/zts/Dockerfile index 6032dc018..68b59661f 100644 --- a/7.2/alpine3.9/zts/Dockerfile +++ b/7.2/alpine3.9/zts/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.2/stretch/apache/Dockerfile b/7.2/stretch/apache/Dockerfile index 431046723..4efd3a343 100644 --- a/7.2/stretch/apache/Dockerfile +++ b/7.2/stretch/apache/Dockerfile @@ -114,7 +114,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.2/stretch/cli/Dockerfile b/7.2/stretch/cli/Dockerfile index c38a9d0c1..7a19d74fb 100644 --- a/7.2/stretch/cli/Dockerfile +++ b/7.2/stretch/cli/Dockerfile @@ -54,7 +54,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.2/stretch/fpm/Dockerfile b/7.2/stretch/fpm/Dockerfile index 7bc43fe87..9007aaf9b 100644 --- a/7.2/stretch/fpm/Dockerfile +++ b/7.2/stretch/fpm/Dockerfile @@ -55,7 +55,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.2/stretch/zts/Dockerfile b/7.2/stretch/zts/Dockerfile index 4e56edeac..e00ee3752 100644 --- a/7.2/stretch/zts/Dockerfile +++ b/7.2/stretch/zts/Dockerfile @@ -55,7 +55,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.3/alpine3.8/cli/Dockerfile b/7.3/alpine3.8/cli/Dockerfile index b2f2b7eac..4d07a490c 100644 --- a/7.3/alpine3.8/cli/Dockerfile +++ b/7.3/alpine3.8/cli/Dockerfile @@ -55,7 +55,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.3/alpine3.8/fpm/Dockerfile b/7.3/alpine3.8/fpm/Dockerfile index 95b99d7c7..cedfea82b 100644 --- a/7.3/alpine3.8/fpm/Dockerfile +++ b/7.3/alpine3.8/fpm/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.3/alpine3.8/zts/Dockerfile b/7.3/alpine3.8/zts/Dockerfile index a5eac5a28..8d251d4ca 100644 --- a/7.3/alpine3.8/zts/Dockerfile +++ b/7.3/alpine3.8/zts/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.3/alpine3.9/cli/Dockerfile b/7.3/alpine3.9/cli/Dockerfile index 85e403805..6635ac94d 100644 --- a/7.3/alpine3.9/cli/Dockerfile +++ b/7.3/alpine3.9/cli/Dockerfile @@ -55,7 +55,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.3/alpine3.9/fpm/Dockerfile b/7.3/alpine3.9/fpm/Dockerfile index 158db6788..e1fffa743 100644 --- a/7.3/alpine3.9/fpm/Dockerfile +++ b/7.3/alpine3.9/fpm/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.3/alpine3.9/zts/Dockerfile b/7.3/alpine3.9/zts/Dockerfile index be110b2e7..53c49447e 100644 --- a/7.3/alpine3.9/zts/Dockerfile +++ b/7.3/alpine3.9/zts/Dockerfile @@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.3/stretch/apache/Dockerfile b/7.3/stretch/apache/Dockerfile index 333a5cd92..6493952ef 100644 --- a/7.3/stretch/apache/Dockerfile +++ b/7.3/stretch/apache/Dockerfile @@ -114,7 +114,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.3/stretch/cli/Dockerfile b/7.3/stretch/cli/Dockerfile index 28248d3b8..4386fa28b 100644 --- a/7.3/stretch/cli/Dockerfile +++ b/7.3/stretch/cli/Dockerfile @@ -54,7 +54,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.3/stretch/fpm/Dockerfile b/7.3/stretch/fpm/Dockerfile index b8ef1193c..34cb396f9 100644 --- a/7.3/stretch/fpm/Dockerfile +++ b/7.3/stretch/fpm/Dockerfile @@ -55,7 +55,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/7.3/stretch/zts/Dockerfile b/7.3/stretch/zts/Dockerfile index 0b3fc8d18..58c9e0d38 100644 --- a/7.3/stretch/zts/Dockerfile +++ b/7.3/stretch/zts/Dockerfile @@ -55,7 +55,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index a1e3ed5fd..adb32c0f9 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -49,7 +49,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie" diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index ad65d32c4..6fa120ad1 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -48,7 +48,8 @@ RUN set -eux; \ # Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default) # Adds GNU HASH segments to generated executables (this is used if present, and is much faster than sysv hash; in this configuration, sysv hash is also generated) # https://github.com/docker-library/php/issues/272 -ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2" +# Enable large file support (-D_FILE_OFFSET_BITS=64) +ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_FILE_OFFSET_BITS=64" ENV PHP_CPPFLAGS="$PHP_CFLAGS" ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"