[FFmpeg-cvslog] configure: Fix ARM thumb detection
Michael Niedermayer
git at videolan.org
Tue Dec 4 05:48:40 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 4 05:35:11 2012 +0100| [400647f9ba6a65e45dbdd57ee05560758cfafdec] | committer: 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: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=400647f9ba6a65e45dbdd57ee05560758cfafdec
---
configure | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 2628035..6dda93d 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
More information about the ffmpeg-cvslog
mailing list