From f946a9a431f93492c08a1be0117a1f51e7429136 Mon Sep 17 00:00:00 2001
From: Alexander Strange <astrange@ithinksw.com>
Date: Sun, 27 Apr 2008 16:12:24 +0000
Subject: [PATCH] Use check_cflags for -mdynamic-no-pic so third-party
 compilers will work on Darwin.

Originally committed as revision 13007 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 840d05470b7..c6bb4d75221 100755
--- a/configure
+++ b/configure
@@ -1358,7 +1358,7 @@ if test $target_os = darwin; then
         add_cflags "-pipe"
         check_cflags "-force_cpusubtype_ALL"
         check_cflags "-Wno-sign-compare"
-        enabled shared || add_cflags -mdynamic-no-pic
+        enabled shared || check_cflags -mdynamic-no-pic
     fi
 fi
 
-- 
GitLab