Fix gd extension build under Ubuntu #3341
Conversation
|
Any particular reason why this targets PHP-7.2, and not PHP-7.1 or master? |
|
IMHO, when available, we should rely on pkg-config output |
|
I wrote it for 7.2.7 and have not checked for compatibility with 7.1. As for pkg-config, if we trust it, then it still prints |
when using pkg-config output, you DON'T have to check if the file exists, simply rely on its output (see other ext. which already use it) |
|
Comment on behalf of petk at php.net: Updating labels |
|
I have implemented the pkg-config migration of ext/gd in #3739, which should resolve this issue in the most general way. |
Some headers are in a different location in Ubuntu, so the build normally fails.