Skip to content

Fix GH-23862: bundled libgd fails to build with FreeType < 2.10 - #23870

Open
devnexen wants to merge 1 commit into
php:PHP-8.6from
devnexen:gh23862
Open

devnexen wants to merge 1 commit into
php:PHP-8.6from
devnexen:gh23862

Conversation

@devnexen

Copy link
Copy Markdown
Member

gdft.c only includes <ft2build.h> when HAVE_FT2BUILD_H is defined since the libgd 2.4 sync, but neither config.m4 nor config.w32 (since CHECK_HEADER() replaced CHECK_HEADER_ADD_INCLUDE()) define it. FreeType < 2.10 requires <ft2build.h> to be included first.

gdft.c only includes <ft2build.h> when HAVE_FT2BUILD_H is defined since
the libgd 2.4 sync, but neither config.m4 nor config.w32 (since
CHECK_HEADER() replaced CHECK_HEADER_ADD_INCLUDE()) define it. FreeType
< 2.10 requires <ft2build.h> to be included first.

Co-authored-by: Lukasz Mar <18259781+lukaszmarcola@users.noreply.github.com>
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.

ext/gd: bundled libgd fails to build with FreeType < 2.10 – HAVE_FT2BUILD_H is never defined by config.m4

1 participant