aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-02-27 23:34:38 +0000
committerMichael Niedermayer <michaelni@gmx.at>2011-03-01 13:55:54 +0100
commit42ccd2fcf834db379834d39b4012cbe18152dfe4 (patch)
treec0b96d969eb4b25c34434725c358269bdb147b9a /configure
parent65ad2c618ffa83dd589f7d02d2ea9853aa477849 (diff)
downloadffmpeg-42ccd2fcf834db379834d39b4012cbe18152dfe4.tar.gz
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> (cherry picked from commit 00ba041cb396f88f68a1bf7907e7c98ded3760ab)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 1 insertions, 5 deletions
diff --git a/configure b/configure
index 110b309384..9a9d87f00b 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