[FFmpeg-cvslog] configure: Only disable aligned stack on MSVC on 32 bit

Martin Storsjö git at videolan.org
Wed Sep 12 12:09:31 CEST 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Sep 11 11:10:12 2012 +0300| [6121a3ef7f1572083c9bcdff0e7e024627472364] | committer: Martin Storsjö

configure: Only disable aligned stack on MSVC on 32 bit

On 64 bit, the stack seems to be aligned enough for our needs.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 configure |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 3bbdc0e..5afdab9 100755
--- a/configure
+++ b/configure
@@ -2330,7 +2330,6 @@ probe_cc(){
         if [ $pfx = hostcc ]; then
             append _cflags -Dsnprintf=_snprintf
         fi
-        disable aligned_stack
     fi
 
     eval ${pfx}_type=\$_type
@@ -3470,6 +3469,8 @@ elif enabled tms470; then
     add_cflags -pds=824 -pds=837
 elif enabled pathscale; then
     add_cflags -fstrict-overflow -OPT:wrap_around_unsafe_opt=OFF
+elif enabled msvc; then
+    enabled x86_32 && disable aligned_stack
 fi
 
 enabled_any $THREADS_LIST      && enable threads



More information about the ffmpeg-cvslog mailing list