Want to subscribe to topics you're interested in?
Become a Member

Beta Branch fix PHP GD AVIF support with external libgd on EL9 in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 2, 2026 at 7:52 AM.

  1. eva2000

    eva2000 Administrator Staff Member

    59,883
    12,545
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,190
    Local Time:
    2:01 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix PHP GD AVIF support with external libgd on EL9 in 140.00beta01


    On EL9, libffi.pc reports -L/usr/lib64/../lib64. With --with-ffi, PHP's
    configure adds that path ahead of the external libgd path, so its
    gdImageCreateFromAvif run test links the system gd-devel libgd, which is
    built without AVIF. PHP then silently disables GD AVIF support even though
    both PHP and the external libgd link libavif.

    Changes:
    - set FFI_LIBS='-lffi' when pkg-config reports a libffi library path
    containing /../, so PHP's configure checks use the external libgd

    Continue reading...

    140.00beta01 branch