Skip to content

Commit da77ea9

Browse files
authored
Merge pull request #901 from delfer/largefile
Enabled large file support (affects 32bit systems)
2 parents 9b073b8 + 88a8a1e commit da77ea9

File tree

51 files changed

+102
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+102
-51
lines changed

7.1/alpine3.10/cli/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ RUN set -eux; \
5555
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5656
# 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)
5757
# https://github.com/docker-library/php/issues/272
58-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
58+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
59+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
5960
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6061
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6162

7.1/alpine3.10/fpm/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr
5656
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5757
# 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)
5858
# https://github.com/docker-library/php/issues/272
59-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
59+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
60+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6061
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6162
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6263

7.1/alpine3.10/zts/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi
5656
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5757
# 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)
5858
# https://github.com/docker-library/php/issues/272
59-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
59+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
60+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6061
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6162
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6263

7.1/alpine3.9/cli/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ RUN set -eux; \
5555
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5656
# 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)
5757
# https://github.com/docker-library/php/issues/272
58-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
58+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
59+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
5960
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6061
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6162

7.1/alpine3.9/fpm/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr
5656
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5757
# 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)
5858
# https://github.com/docker-library/php/issues/272
59-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
59+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
60+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6061
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6162
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6263

7.1/alpine3.9/zts/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi
5656
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5757
# 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)
5858
# https://github.com/docker-library/php/issues/272
59-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
59+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
60+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6061
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6162
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6263

7.1/buster/apache/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi
117117
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
118118
# 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)
119119
# https://github.com/docker-library/php/issues/272
120-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
120+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
121+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
121122
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
122123
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
123124

7.1/buster/cli/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ RUN set -eux; \
5757
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5858
# 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)
5959
# https://github.com/docker-library/php/issues/272
60-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
60+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
61+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6162
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6263
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6364

7.1/buster/fpm/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-gr
5858
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5959
# 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)
6060
# https://github.com/docker-library/php/issues/272
61-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
61+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
62+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6263
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6364
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6465

7.1/buster/zts/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts --disable-cgi
5858
# Enable linker optimization (this sorts the hash buckets to improve cache locality, and is non-default)
5959
# 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)
6060
# https://github.com/docker-library/php/issues/272
61-
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
61+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
62+
ENV PHP_CFLAGS="-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6263
ENV PHP_CPPFLAGS="$PHP_CFLAGS"
6364
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"
6465

0 commit comments

Comments
 (0)