Conversation
|
cc @remicollet |
|
It's fatally broken if you actually do try to set Please use #3632 instead. Apologies for not submitting it much, much sooner. |
|
Using the pkg-config macros is also preferable, because it will add |
|
@eli-schwartz Sure, but there are several other cases where pkg-config is used like this, so I would rather suggest to separate these two issues and have a quick fix for freetype2 and then fix pkg-config throughout the whole source tree. |
|
I could work on porting the other uses of pkg-config over. :) I started on curl, pushed to a new branch to avoid forcing it in my PR, see https://github.com/eli-schwartz/php-src/commits/pkg-config-everywhere |
|
Also your PR leaves the configure help slightly confusing, e.g. what does --with-freetype-dir do when pkg-config is in use? |
Well, the patch could be rewritten so that an explicitly given |
|
The migration to the Thanks. |
|
Usually, it’s better (and enough) to pass correct directory in PKG_CONFIG_PATH for a custom installation. |
|
Would the path order in Thanks. |
|
If |
|
I've merged the variant at #3632 for master. Do we maybe still want to land this PR (which is less intrusive and essentially backwards compatible) for older versions? |
|
IMO fine for PHP-7.3 (at least), iff we resolve the issue that |
…w_line in readline library
SImple patch that uses pkg-config for FreeType2 library detection if pkg-config is available.