mirror of
https://github.com/danog/php.git
synced 2025-01-22 04:51:20 +01:00
Add cflags and ldflags for security and portability
This commit is contained in:
parent
c0bef1c53f
commit
cae3c03efd
@ -32,6 +32,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
|
||||
|
||||
ENV PHP_VERSION 5.6.28
|
||||
|
@ -37,6 +37,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
|
||||
|
||||
ENV PHP_VERSION 5.6.28
|
||||
|
@ -88,6 +88,10 @@ ENV PHP_EXTRA_BUILD_DEPS apache2-dev
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
|
||||
|
||||
ENV PHP_VERSION 5.6.28
|
||||
|
@ -33,6 +33,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
|
||||
|
||||
ENV PHP_VERSION 5.6.28
|
||||
|
@ -38,6 +38,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
|
||||
|
||||
ENV PHP_VERSION 5.6.28
|
||||
|
@ -33,6 +33,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
|
||||
|
||||
ENV PHP_VERSION 5.6.28
|
||||
|
@ -38,6 +38,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 0BD78B5F97500D450838F95DFE857D9A90D90EC1 6E4F6AB321FDC07F2C332E3AC2BF0BC433CFC8B3
|
||||
|
||||
ENV PHP_VERSION 5.6.28
|
||||
|
@ -32,6 +32,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763
|
||||
|
||||
ENV PHP_VERSION 7.0.13
|
||||
|
@ -37,6 +37,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763
|
||||
|
||||
ENV PHP_VERSION 7.0.13
|
||||
|
@ -88,6 +88,10 @@ ENV PHP_EXTRA_BUILD_DEPS apache2-dev
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763
|
||||
|
||||
ENV PHP_VERSION 7.0.13
|
||||
|
@ -33,6 +33,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763
|
||||
|
||||
ENV PHP_VERSION 7.0.13
|
||||
|
@ -38,6 +38,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763
|
||||
|
||||
ENV PHP_VERSION 7.0.13
|
||||
|
@ -33,6 +33,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763
|
||||
|
||||
ENV PHP_VERSION 7.0.13
|
||||
|
@ -38,6 +38,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS 1A4E8B7277C42E53DBA9C7B9BCAA30EA9C0D5763
|
||||
|
||||
ENV PHP_VERSION 7.0.13
|
||||
|
@ -32,6 +32,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS A917B1ECDA84AEC2B568FED6F50ABC807BD5DCD0
|
||||
|
||||
ENV PHP_VERSION 7.1.0
|
||||
|
@ -37,6 +37,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS A917B1ECDA84AEC2B568FED6F50ABC807BD5DCD0
|
||||
|
||||
ENV PHP_VERSION 7.1.0
|
||||
|
@ -88,6 +88,10 @@ ENV PHP_EXTRA_BUILD_DEPS apache2-dev
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --with-apxs2
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS A917B1ECDA84AEC2B568FED6F50ABC807BD5DCD0
|
||||
|
||||
ENV PHP_VERSION 7.1.0
|
||||
|
@ -33,6 +33,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS A917B1ECDA84AEC2B568FED6F50ABC807BD5DCD0
|
||||
|
||||
ENV PHP_VERSION 7.1.0
|
||||
|
@ -38,6 +38,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS A917B1ECDA84AEC2B568FED6F50ABC807BD5DCD0
|
||||
|
||||
ENV PHP_VERSION 7.1.0
|
||||
|
@ -33,6 +33,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS A917B1ECDA84AEC2B568FED6F50ABC807BD5DCD0
|
||||
|
||||
ENV PHP_VERSION 7.1.0
|
||||
|
@ -38,6 +38,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-maintainer-zts
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS A917B1ECDA84AEC2B568FED6F50ABC807BD5DCD0
|
||||
|
||||
ENV PHP_VERSION 7.1.0
|
||||
|
@ -31,6 +31,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS %%GPG_KEYS%%
|
||||
|
||||
ENV PHP_VERSION %%PHP_VERSION%%
|
||||
|
@ -26,6 +26,10 @@ RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
ENV CFLAGS="-fstack-protector-strong -fpic -fpie -O2"
|
||||
ENV CPPFLAGS="$CFLAGS"
|
||||
ENV LDFLAGS="-Wl,-O1 -Wl,--hash-style=both"
|
||||
|
||||
ENV GPG_KEYS %%GPG_KEYS%%
|
||||
|
||||
ENV PHP_VERSION %%PHP_VERSION%%
|
||||
|
Loading…
x
Reference in New Issue
Block a user