[FFmpeg-devel] [PATCH] Use --sysroot flag for clang
Mans Rullgard
mans
Mon Feb 28 00:39:36 CET 2011
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>
---
configure | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/configure b/configure
index 4a49f3e..04f6e13 100755
--- a/configure
+++ b/configure
@@ -2046,7 +2046,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"
;;
@@ -2054,10 +2054,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
--
1.7.4.1
More information about the ffmpeg-devel
mailing list