Skip to content

Commit 88a8a1e

Browse files
committed
Add comment to remind us why we added largefile support
1 parent 168caf5 commit 88a8a1e

File tree

51 files changed

+51
-0
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

+51
-0
lines changed

7.1/alpine3.10/cli/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ 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+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
5859
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"

7.1/alpine3.10/fpm/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ 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+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
5960
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"

7.1/alpine3.10/zts/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ 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+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
5960
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"

7.1/alpine3.9/cli/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ 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+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
5859
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"

7.1/alpine3.9/fpm/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ 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+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
5960
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"

7.1/alpine3.9/zts/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ 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+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
5960
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"

7.1/buster/apache/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ 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+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
120121
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"

7.1/buster/cli/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ 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+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
6061
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"

7.1/buster/fpm/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ 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+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
6162
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"

7.1/buster/zts/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ 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+
# -D_LARGEFILE_SOURCE and -D_FILE_OFFSET_BITS=64 (https://www.php.net/manual/en/intro.filesystem.php)
6162
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"

0 commit comments

Comments
 (0)