Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-02-28 02:34:38 +0300
committerMans Rullgard <mans@mansr.com>2011-02-28 05:55:50 +0300
commit00ba041cb396f88f68a1bf7907e7c98ded3760ab (patch)
tree379bc5be33f5958bfdbd5071de665fffdaa0c3db /configure
parent0b32da90f893b3e04ead18a546252e241a6a0988 (diff)
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@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 1 insertions, 5 deletions
diff --git a/configure b/configure
index 4a49f3e2e7..04f6e13211 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