I will see if I can find any history of giflib-5.2.2.patch2.
Does the multibit compile work for you on Termux?  Tarantas added to our bug report of:
  https://www.cinelerra-gg.org/bugtracker/view.php?id=650#c5694giflib-5.2.2.patch2
which I tried to track but failed.

On Wed, Sep 4, 2024 at 11:38 AM Andrew Randrianasulu <randrianasulu@gmail.com> wrote:
due to giflib-5.2.2.patch2

I removed patch and build is ok. Not sure where this  patch was needed, may be on older distros?

I also tried to "set -e" before building cingg and get build breaking error somewhere in x265 dir, as reported already.

but for me default (seen with "set -o" ) errexit=off, you can set it off for specific build by executing  "set  +e" before building cingg.