Commit 400647f9 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5e1bacf2
...@@ -3424,7 +3424,10 @@ if enabled alpha; then ...@@ -3424,7 +3424,10 @@ if enabled alpha; then
elif enabled arm; 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 enabled thumb && check_cflags -mthumb || check_cflags -marm
nogas=die nogas=die
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment