configure: set nasm format correctly on Darwin

This commit is contained in:
Caleb Xu 2021-09-17 12:44:33 -04:00
parent 6a1600b354
commit 2ee94bc161
No known key found for this signature in database
GPG key ID: 2F67B6BC86DC4F00

View file

@ -137,7 +137,13 @@ if test x"$ASM" = x"yes"; then
i?86-*) i?86-*)
ASM_OPT="$ASM_OPT -g -f elf" ;; ASM_OPT="$ASM_OPT -g -f elf" ;;
x86_64-*) x86_64-*)
case "${host_os}" in
darwin*)
ASM_OPT="$ASM_OPT -Dx64 -g -f macho64" ;;
*)
ASM_OPT="$ASM_OPT -Dx64 -g -f elf64" ;; ASM_OPT="$ASM_OPT -Dx64 -g -f elf64" ;;
esac
;;
*) ASM_OPT= ;; *) ASM_OPT= ;;
esac esac
else else