aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-04 05:35:11 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-04 05:47:10 +0100
commit400647f9ba6a65e45dbdd57ee05560758cfafdec (patch)
treee1a9170720c29483edcdc482a22cc7ab454ca314
parent5e1bacf2d49622f7ba4245f140b7be35972c0529 (diff)
downloadffmpeg-400647f9ba6a65e45dbdd57ee05560758cfafdec.tar.gz
configure: Fix ARM thumb detection
The detection detects the default but not if it even works. Check building a simple piece of code and disable thumb if it fails This fixes a compile failure If someone has a better idea, just replace this by it! Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 26280359d7..6dda93d58f 100755
--- a/configure
+++ b/configure
@@ -3424,7 +3424,10 @@ if enabled alpha; then
elif enabled arm; then
- check_cpp_condition stddef.h "defined __thumb__" && enable_weak thumb
+ check_cpp_condition stddef.h "defined __thumb__" && check_cc <<EOF && enable_weak thumb
+float func(float a, float b){ return a+b; }
+EOF
+
enabled thumb && check_cflags -mthumb || check_cflags -marm
nogas=die