Uh oh!
There was an error while loading. Please reload this page.
Use pkg-config for FreeType2 detection - #3630
Conversation
KalleZ
commented
Oct 22, 2018
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. |
eli-schwartz
commented
Oct 22, 2018
Using the pkg-config macros is also preferable, because it will add |
oerdnj
commented
Oct 22, 2018
@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 |
eli-schwartz
commented
Oct 22, 2018
Also your PR leaves the configure help slightly confusing, e.g. what does --with-freetype-dir do when pkg-config is in use? |
cmb69
commented
Oct 22, 2018
Well, the patch could be rewritten so that an explicitly given |
weltling
commented
Oct 30, 2018
The migration to the Thanks. |
oerdnj
commented
Oct 30, 2018
Usually, it’s better (and enough) to pass correct directory in PKG_CONFIG_PATH for a custom installation. |
weltling
commented
Oct 30, 2018
Would the path order in Thanks. |
cmb69
commented
Oct 30, 2018
If |
nikic
commented
Nov 7, 2018
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? |
cmb69
commented
Nov 7, 2018
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.