[php-src] PR #13724: ext/gd/config.m4: don't forget GDLIB_CFLAGS in feature tests
| From: | orlitzky | Date: | Fri, 15 Mar 2024 17:18:13 +0000 |
| Subject: | [php-src] PR #13724: ext/gd/config.m4: don't forget GDLIB_CFLAGS in feature tests | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25435@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13724
Author: orlitzky
In commit 85e5635a, a feature test for the various libgd image formats was added. That test however
erroneously omits the
GDLIB_CFLAGS (from pkg-config) during compilation. This can lead
to build failures and therefore false negatives from the test.
Here, we add $GDLIB_CFLAGS to $CFLAGS for the duration of the test.
Moreover, we replace $GD_SHARED_LIBADD with $GDLIB_LIBS in the same test.
The variable $GD_SHARED_LIBADD is actually empty when we try to use it. Fortunately(?),
the library flags are appended elsewhere, so this was not causing a problem. But of course it's
better to explicitly do the right thing.
Closes GH-12019