PR #23438 opened by Niklas Haas (haasn)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23438
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23438.patch

HOSTCC and CC might be completely different compilers.

Signed-off-by: Niklas Haas <[email protected]>


>From e3c275ba15c139c36ed6123d6d1416d76b82c257 Mon Sep 17 00:00:00 2001
From: Niklas Haas <[email protected]>
Date: Wed, 10 Jun 2026 16:35:02 +0200
Subject: [PATCH] swscale/x86: use correct HOSTCC_E flag instead of CC_E

HOSTCC and CC might be completely different compilers.

Signed-off-by: Niklas Haas <[email protected]>
---
 configure               | 1 +
 libswscale/x86/Makefile | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 9189e41413..e67aa362ad 100755
--- a/configure
+++ b/configure
@@ -8754,6 +8754,7 @@ HOSTCCDEP=$HOSTCCDEP
 HOSTCCDEP_FLAGS=$HOSTCCDEP_FLAGS
 HOSTCC_DEPFLAGS=$HOSTCC_DEPFLAGS
 HOSTCC_C=$HOSTCC_C
+HOSTCC_E=$HOSTCC_E
 HOSTCC_O=$HOSTCC_O
 HOSTLD_O=$HOSTLD_O
 TARGET_EXEC=$target_exec $target_exec_args
diff --git a/libswscale/x86/Makefile b/libswscale/x86/Makefile
index da0cb98a9f..2eeb2b2627 100644
--- a/libswscale/x86/Makefile
+++ b/libswscale/x86/Makefile
@@ -28,5 +28,5 @@ $(SUBDIR)x86/ops_int.o: $(SUBDIR)x86/uops_macros.gen.asm
 $(SUBDIR)x86/ops_float.o: $(SUBDIR)x86/uops_macros.gen.asm
 $(SUBDIR)x86/uops_macros.gen.asm: $(SRC_PATH)/libswscale/x86/uops_macros.asm.h 
\
                                   $(SRC_PATH)/libswscale/uops_macros.h
-       $(HOSTCC) $(CC_E) $(CPPFLAGS) $<
+       $(HOSTCC) $(HOSTCC_E) $(CPPFLAGS) $<
 endif
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to