Commit d9e59029 authored by James Almer's avatar James Almer

Merge commit '0e83e95c'

* commit '0e83e95c':
  configure: Reset X86ASM_DEP(FLAGS) when probing for the assembler program

See f66086adMerged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 29ba2900 0e83e95c
...@@ -5637,10 +5637,14 @@ EOF ...@@ -5637,10 +5637,14 @@ EOF
x86asmexe=$x86asmexe_probe x86asmexe=$x86asmexe_probe
x86asm_type=nasm x86asm_type=nasm
x86asm_debug="-g -F dwarf" x86asm_debug="-g -F dwarf"
X86ASMDEP=
X86ASM_DEPFLAGS='-MD $(@:.o=.d)'
elif check_cmd $x86asmexe_probe --version; then elif check_cmd $x86asmexe_probe --version; then
x86asmexe=$x86asmexe_probe x86asmexe=$x86asmexe_probe
x86asm_type=yasm x86asm_type=yasm
x86asm_debug="-g dwarf2" x86asm_debug="-g dwarf2"
X86ASMDEP='$(DEPX86ASM) $(X86ASMFLAGS) -M $(X86ASM_O) $< > $(@:.o=.d)'
X86ASM_DEPFLAGS=
fi fi
check_x86asm "movbe ecx, [5]" && enable x86asm check_x86asm "movbe ecx, [5]" && enable x86asm
} }
...@@ -5651,8 +5655,6 @@ EOF ...@@ -5651,8 +5655,6 @@ EOF
probe_x86asm $program && break probe_x86asm $program && break
done done
disabled x86asm && die "nasm/yasm not found or too old. Use --disable-x86asm for a crippled build." disabled x86asm && die "nasm/yasm not found or too old. Use --disable-x86asm for a crippled build."
test $x86asm_type = 'nasm' && X86ASM_DEPFLAGS='-MD $(@:.o=.d)'
test $x86asm_type = 'yasm' && X86ASMDEP='$(DEPX86ASM) $(X86ASMFLAGS) -M $(X86ASM_O) $< > $(@:.o=.d)'
X86ASMFLAGS="-f $objformat" X86ASMFLAGS="-f $objformat"
enabled pic && append X86ASMFLAGS "-DPIC" enabled pic && append X86ASMFLAGS "-DPIC"
test -n "$extern_prefix" && append X86ASMFLAGS "-DPREFIX" test -n "$extern_prefix" && append X86ASMFLAGS "-DPREFIX"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment