Skip to content

Conversation

@yosifkit
Copy link
Member

Closes #351; Fixes #347.

This will ensure we don't break other downstream builds and lets us use the flags for the php build and any of the contained php modules that can be built with the docker-php-ext=* scripts. When using docker-php-ext-* scripts, if a user supplies CLFAGS, CPPFLAGS, or LDFLAGS in their environment it will not be overridden by the respective PHP_ variable.

Also add -pie so that the linker knows too. (see #351 (comment))

First commit updates just the templates; second commit is update.sh.

@yosifkit
Copy link
Member Author

$ # current image with CFLAGS
$ docker run -it --rm php bash
root@71ff088724ee:/# file /usr/local/bin/php
/usr/local/bin/php: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=e3bf2c45a8b2f7730413025d0f9e169f3ef4edc6, stripped
$ # new image with PHP_CFLAGS and -pie
$ docker run -it --rm f86d7463f704 bash
root@b2fc4abd737e:/# file /usr/local/bin/php
/usr/local/bin/php: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=697bc32f0d98b1bd49a40a43102a20256163d434, stripped

Copy link
Member

@tianon tianon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tianon tianon merged commit cd981e5 into docker-library:master Dec 13, 2016
@tianon tianon deleted the keep-pie branch December 13, 2016 17:58
tianon added a commit to infosiftr/stackbrew that referenced this pull request Dec 13, 2016
- `celery`: 4.0.1
- `docker`: 1.12.4
- `elasticsearch`: add Alpine variants (docker-library/elasticsearch#149)
- `ghost`: allow arbitrary `--user` values (docker-library/ghost#54)
- `haproxy`: 1.7.1
- `java`: debian 9~b148-1
- `mariadb`: add explicit `--socket` (MariaDB/mariadb-docker#92)
- `mysql`: 5.7.17-1debian8, 5.6.35-1debian8, 5.5.54
- `openjdk`: debian 9~b148-1
- `percona`: add explicit `--socket` (docker-library/percona#37)
- `php`: move `CFLAGS` (and friends) to `PHP_CFLAGS`, add `-pie` (docker-library/php#352)
- `postgres`: 9.6.1-2.pgdg80+1, use `pgsql -f ...` instead of `pgsql < ...` for relative includes (docker-library/postgres#234)
- `rocket.chat`: 0.48.1
- `tomcat`: 8.5.9, 9.0.0.M15
- `wordpress`: add `fpm-alpine` variant (docker-library/wordpress#190)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants