Skip to content

meson: bump version to 4.4.3

Tim-Philipp Müller requested to merge tpm/ffmpeg:meson-v4.4.3 into meson-4.4

And update for configure changes.

Todo

  • Needs updating for this configure change from commit 78062c6d (original commit adding this check in ffmpeg is commit 876f9ac9)
 # it seems there are versions of clang in some distros that try to use the
 # gcc headers, which explodes for stdatomic
 # so we also check that atomics actually work here
-check_builtin stdatomic stdatomic.h "atomic_int foo, bar = ATOMIC_VAR_INIT(-1); atomic_store(&foo, 0); foo += bar"
+#
+# some configurations also require linking to libatomic, so try
+# both with -latomic and without
+for LATOMIC in "-latomic" ""; do
+    check_builtin stdatomic stdatomic.h                                                 \
+        "atomic_int foo, bar = ATOMIC_VAR_INIT(-1); atomic_store(&foo, 0); foo += bar"  \
+        $LATOMIC && eval stdatomic_extralibs="\$LATOMIC" && break
+done
Edited by Tim-Philipp Müller

Merge request reports

Loading