[FFmpeg-devel] [PATCH] Workaround to build ffmpeg on MacOs 10.15

tfoucu at gmail.com tfoucu at gmail.com
Fri Jan 3 05:55:43 EET 2020


From: Thierry Foucu <tfoucu at gmail.com>

---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index 965b4c71b8..0bc2cb52ac 100755
--- a/configure
+++ b/configure
@@ -5317,6 +5317,9 @@ case $target_os in
         enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress
         strip="${strip} -x"
         add_ldflags -Wl,-dynamic,-search_paths_first
+        # -fno-stack-check is a workaround for a possible
+        # bug in Xcode 11 or macOS 10.15+
+        add_cflags -fno-stack-check
         check_cflags -Werror=partial-availability
         SLIBSUF=".dylib"
         SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'
-- 
2.21.0 (Apple Git-122.2)



More information about the ffmpeg-devel mailing list