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>
This commit is contained in:
parent
5e1bacf2d4
commit
400647f9ba
5
configure
vendored
5
configure
vendored
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user