[FFmpeg-cvslog] Use --sysroot flag for clang

Mans Rullgard git
Tue Mar 1 14:48:46 CET 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Feb 27 23:34:38 2011 +0000| [42ccd2fcf834db379834d39b4012cbe18152dfe4] | committer: Michael Niedermayer

Use --sysroot flag for clang

Although not documented, clang does support the --sysroot flag, and it
does the right thing.  Use this flag intead of -isysroot which only
applies to header file searches, not the linker.

Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit 00ba041cb396f88f68a1bf7907e7c98ded3760ab)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=42ccd2fcf834db379834d39b4012cbe18152dfe4
---

 configure |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/configure b/configure
index 110b309..9a9d87f 100755
--- a/configure
+++ b/configure
@@ -2051,7 +2051,7 @@ add_asflags $extra_cflags
 
 if test -n "$sysroot"; then
     case "$cc_type" in
-        gcc|llvm_gcc)
+        gcc|llvm_gcc|clang)
             add_cppflags --sysroot="$sysroot"
             add_ldflags --sysroot="$sysroot"
         ;;
@@ -2059,10 +2059,6 @@ if test -n "$sysroot"; then
             add_cppflags -I"$sysinclude"
             add_ldflags  --sysroot="$sysroot"
         ;;
-        clang)
-            add_cppflags -isysroot "$sysroot"
-            add_ldflags -isysroot "$sysroot"
-        ;;
     esac
 fi
 




More information about the ffmpeg-cvslog mailing list