[4/7] configure: Use indirection for -o assembler flag also for x86asm

Message ID 20180320094930.5424-5-diego@biurrun.de
State Committed
Headers show
Series
  • [1/7] configure: Document available options for the --toolchain parameter
Related show

Commit Message

Diego Biurrun March 20, 2018, 9:49 a.m.
---
 configure | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Diego Biurrun March 23, 2018, 1:35 p.m. | #1
On Tue, Mar 20, 2018 at 10:49:27AM +0100, Diego Biurrun wrote:
> --- a/configure
> +++ b/configure
> @@ -808,12 +808,16 @@ test_as(){
> +x86asm_o(){
> +    eval printf '%s\\n' $X86ASM_O
> +}
> +
>  test_x86asm(){
>      log test_x86asm "$@"
>      echo "$1" > $TMPASM
>      log_file $TMPASM
>      shift 1
> -    test_cmd $x86asmexe $X86ASMFLAGS "$@" -o $TMPO $TMPASM
> +    test_cmd $x86asmexe $X86ASMFLAGS "$@" $(x86asm_o $TMPO) $TMPASM
>  }

OKed by James on IRC.

Diego

Patch

diff --git a/configure b/configure
index dbc5759df4..e3c5dcae1e 100755
--- a/configure
+++ b/configure
@@ -808,12 +808,16 @@  test_as(){
     test_cmd $as $CPPFLAGS $ASFLAGS "$@" $AS_C $(as_o $TMPO) $TMPS
 }
 
+x86asm_o(){
+    eval printf '%s\\n' $X86ASM_O
+}
+
 test_x86asm(){
     log test_x86asm "$@"
     echo "$1" > $TMPASM
     log_file $TMPASM
     shift 1
-    test_cmd $x86asmexe $X86ASMFLAGS "$@" -o $TMPO $TMPASM
+    test_cmd $x86asmexe $X86ASMFLAGS "$@" $(x86asm_o $TMPO) $TMPASM
 }
 
 check_cmd(){