From 09cc14b2d7ddc89c8852c315d849eff249b8f677 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Sun, 29 Mar 2026 05:53:32 +0300
Subject: [PATCH 1/2] Fix mjpegtools build with clang/termux (set cflags to
 -std=c11)

---
 cinelerra-5.1/thirdparty/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cinelerra-5.1/thirdparty/Makefile b/cinelerra-5.1/thirdparty/Makefile
index 95a4e311..c2c62d2e 100644
--- a/cinelerra-5.1/thirdparty/Makefile
+++ b/cinelerra-5.1/thirdparty/Makefile
@@ -227,7 +227,7 @@ libwebp.cfg_vars?= ./autogen.sh;
 libwebp.cfg_params?= --prefix=$(call bld_path,libwebp)usr/local --enable-static --disable-shared --disable-libwebpdemux --disable-libwebpmux; \
     make install;
 mjpegtools.cflags?="$(call inc_path,libjpeg) $(call ld_path,libjpeg,build)"
-mjpegtools.cfg_vars?= ./autogen.sh; export CXXFLAGS+="-std=c++11";
+mjpegtools.cfg_vars?= ./autogen.sh; export CXXFLAGS+=" -std=c++11 "; export CFLAGS+=" -std=c11 ";
 mjpegtools.cfg_params?= --enable-shared=no --without-libquicktime --without-libdv \
  --without-libpng --without-dga --without-gtk --without-libsdl --without-sdlgfx
 mjpegtools.mak_params?= all
-- 
2.53.0

