This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 52f05ac780 configure: Rewrite "gcc" into "g++" for clang type 
compilers as well
52f05ac780 is described below

commit 52f05ac7809e6b5ef24ca0127c334f63a7b911d2
Author:     Martin Storsjö <[email protected]>
AuthorDate: Tue Sep 22 11:38:14 2026 +0300
Commit:     Martin Storsjö <[email protected]>
CommitDate: Tue Sep 22 11:41:51 2026 +0300

    configure: Rewrite "gcc" into "g++" for clang type compilers as well
    
    Many toolchains provide compilers named "gcc" (or "<triple>-gcc")
    that still are identified as cc_type="clang" by our configure.
    
    For these, rewrite "gcc" into "g++", rather than rewriting "cc" into
    "c++" (which results in "gc++").
    
    This fixes the default value of cxx on macOS when no compiler is
    specified by the user (where we default to "gcc") after
    662ea4a3e71ad91e4e26a65b9ccf09f349c2f921.
---
 configure | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/configure b/configure
index 7a303f146f..84ab8beb4b 100755
--- a/configure
+++ b/configure
@@ -5447,11 +5447,11 @@ test -n "$cc_type" && enable $cc_type ||
 : ${host_ld_default:=$host_cc}
 
 case $cc_type,$cc in
-    gcc,*gcc*)           cxx_default="${cc%gcc*}g++${cc##*gcc}" ;;
-    clang,*clang*)       cxx_default="${cc%clang*}clang++${cc##*clang}" ;;
-    gcc,*cc*|clang,*cc*) cxx_default="${cc%cc*}c++${cc##*cc}" ;;
-    icc,*icc*)           cxx_default="${cc%icc*}icpc${cc##*icc}" ;;
-    *)                   cxx_default=$cc ;;
+    clang,*clang*)         cxx_default="${cc%clang*}clang++${cc##*clang}" ;;
+    gcc,*gcc*|clang,*gcc*) cxx_default="${cc%gcc*}g++${cc##*gcc}" ;;
+    gcc,*cc*|clang,*cc*)   cxx_default="${cc%cc*}c++${cc##*cc}" ;;
+    icc,*icc*)             cxx_default="${cc%icc*}icpc${cc##*icc}" ;;
+    *)                     cxx_default=$cc ;;
 esac
 set_default ar as cxx objcc dep_cc ld ln_s host_ld windres response_files
 

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to