[2/2] configure: Allow specifying that the compiler can't rely on a aligned stack

Message ID 1310921852-99993-2-git-send-email-martin@martin.st
State Superseded
Headers show

Commit Message

Martin Storsjö July 17, 2011, 4:57 p.m.
The newly released Android x86 ABI assumes only 4-byte aligned stack
(similar to using -mstackrealign with gcc). This patch allows the user
to tell configure about this via --disable-aligned-stack, until someone
figures out a better automatic detection of this condition.
---
 configure |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Mans Rullgard July 17, 2011, 5:22 p.m. | #1
Martin Storsjö <martin@martin.st> writes:

> The newly released Android x86 ABI assumes only 4-byte aligned stack
> (similar to using -mstackrealign with gcc). This patch allows the user
> to tell configure about this via --disable-aligned-stack, until someone
> figures out a better automatic detection of this condition.
> ---
>  configure |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/configure b/configure
> index 40a93cd..4b45562 100755
> --- a/configure
> +++ b/configure
> @@ -235,8 +235,9 @@ Advanced options (experts only):
>    --disable-yasm           disable use of yasm assembler
>    --enable-pic             build position-independent code
>    --malloc-prefix=PFX      prefix malloc and related names with PFX
>    --enable-sram            allow use of on-chip SRAM
> +  --disable-aligned-stack  don't assume the stack is aligned
>    --disable-symver         disable symbol versioning
>    --optflags               override optimization-related compiler flags
>
>  Developer options (useful when working on Libav itself):
> @@ -1141,8 +1142,9 @@ CONFIG_EXTRA="
>  CMDLINE_SELECT="
>      $ARCH_EXT_LIST
>      $CONFIG_LIST
>      $THREADS_LIST
> +    aligned_stack
>      asm
>      cross_compile
>      debug
>      extra_warnings
> -- 

OK

Patch

diff --git a/configure b/configure
index 40a93cd..4b45562 100755
--- a/configure
+++ b/configure
@@ -235,8 +235,9 @@  Advanced options (experts only):
   --disable-yasm           disable use of yasm assembler
   --enable-pic             build position-independent code
   --malloc-prefix=PFX      prefix malloc and related names with PFX
   --enable-sram            allow use of on-chip SRAM
+  --disable-aligned-stack  don't assume the stack is aligned
   --disable-symver         disable symbol versioning
   --optflags               override optimization-related compiler flags
 
 Developer options (useful when working on Libav itself):
@@ -1141,8 +1142,9 @@  CONFIG_EXTRA="
 CMDLINE_SELECT="
     $ARCH_EXT_LIST
     $CONFIG_LIST
     $THREADS_LIST
+    aligned_stack
     asm
     cross_compile
     debug
     extra_warnings