diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-04 08:35:11 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-04 08:47:10 +0400 |
commit | 400647f9ba6a65e45dbdd57ee05560758cfafdec (patch) | |
tree | e1a9170720c29483edcdc482a22cc7ab454ca314 /configure | |
parent | 5e1bacf2d49622f7ba4245f140b7be35972c0529 (diff) |
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>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |