Skip to content

Support building ext/gd without libxpm on Windows #15846

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Sep 12, 2024

For GD, libxpm is an optional dependency, and we should treat it as such, i.e. if the library is not found, we build ext/gd without XPM support.

This should also be done for other optional dependencies (like libjpeg), but since we're close to PHP 8.4.0RC1, we postpone that. However, wrt libxpm[1] we're taking action immediately, so that we can ship builds without XPM support, or at least custom builds without XPM support are possible without modifying the sources.

[1] https://news-web.php.net/php.internals/125502

For GD, libxpm is an optional dependency, and we should treat it as
such, i.e. if the library is not found, we build ext/gd without XPM
support.

This should also be done for other optional dependencies (like libjpeg),
but since we're close to PHP 8.4.0RC1, we postpone that.  However, wrt
libxpm[1] we're taking action immediately, so that we can ship builds
without XPM support, or at least custom builds without XPM support are
possible without modifying the sources.

[1] <https://news-web.php.net/php.internals/125502>
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

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

lgtm maybe @petk wants to have a look at this too.

Copy link
Member

@petk petk left a comment

Choose a reason for hiding this comment

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

Looks ok to me.

@cmb69 cmb69 merged commit 66060b1 into php:master Sep 12, 2024
10 checks passed
@cmb69 cmb69 deleted the cmb/libxpm-opt branch September 12, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants