openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
3.95k stars 3.46k forks source link

php8: workaround libgd capability detection (refs #23846) #24367

Closed mhei closed 3 months ago

mhei commented 3 months ago

Maintainer: me Compile tested: mxs, bcm27xx Run tested: Raspberry Pi

Description: This is an alternative approach to #24209. Instead of switching to bundled/internal libgd, workaround the capability detection by giving the information to the build system directly.

PHP's original approach does not work when cross-compiling, but since it is known which features are enabled in OpenWrt's build, we can directly enable these features here, too.

This is not that future prove, but should do the job for the moment until a proper solution was discussed with upstream.