[FFmpeg-cvslog] configure: Hack to treat x32 as x86_64.

Reimar Döffinger git at videolan.org
Thu Nov 13 08:28:12 CET 2014


ffmpeg | branch: release/2.4 | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Wed Nov 12 09:53:01 2014 +0100| [3e0802e42b07e4c9262240aa2caf208eebac70a2] | committer: Carl Eugen Hoyos

configure: Hack to treat x32 as x86_64.

Allows shared compilation on x32 with --disable-asm.
(cherry picked from commit 5e8e2f3861dfbc4864490401c5209fbc24df3c29)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e0802e42b07e4c9262240aa2caf208eebac70a2
---

 configure |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index af02064..83983cc 100755
--- a/configure
+++ b/configure
@@ -3933,6 +3933,9 @@ case "$arch" in
     ;;
     x86)
         check_64bit x86_32 x86_64 'sizeof(void *) > 4'
+        # Treat x32 as x64 for now. Note it also needs spic=$shared
+        test "$subarch" = "x86_32" && check_cpp_condition stddef.h 'defined(__x86_64__)' &&
+            subarch=x86_64
         if test "$subarch" = "x86_64"; then
             spic=$shared
         fi



More information about the ffmpeg-cvslog mailing list