[FFmpeg-devel] [PATCH v2] configure: Work around a start-up crash when building with clang.

Rick Kern kernrj at gmail.com
Wed Nov 20 14:51:13 EET 2019


The current version of clang enables stack checking by default, causing
a crash when binaries are run.

Fixes #8073 using the -fno-stack-check work-around mentioned in the ticket.
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 8f4f2884cf..97e614f18a 100755
--- a/configure
+++ b/configure
@@ -6880,6 +6880,7 @@ elif enabled clang; then
     check_cflags -Werror=implicit-function-declaration
     check_cflags -Werror=missing-prototypes
     check_cflags -Werror=return-type
+    check_cflags -fno-stack-check
 elif enabled cparser; then
     add_cflags -Wno-missing-variable-declarations
     add_cflags -Wno-empty-statement
-- 
2.20.1



More information about the ffmpeg-devel mailing list