Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ext/gd/config.m4: don't forget GDLIB_CFLAGS in feature tests
In commit 85e5635, 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 phpGH-12019
- Loading branch information