From 2ee94bc1614b3ccf3d6848a8eb3026d5c0d8ffde Mon Sep 17 00:00:00 2001 From: Caleb Xu Date: Fri, 17 Sep 2021 12:44:33 -0400 Subject: [PATCH] configure: set nasm format correctly on Darwin --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4b12022..4d8a015 100644 --- a/configure.ac +++ b/configure.ac @@ -137,7 +137,13 @@ if test x"$ASM" = x"yes"; then i?86-*) ASM_OPT="$ASM_OPT -g -f elf" ;; x86_64-*) - ASM_OPT="$ASM_OPT -Dx64 -g -f elf64" ;; + case "${host_os}" in + darwin*) + ASM_OPT="$ASM_OPT -Dx64 -g -f macho64" ;; + *) + ASM_OPT="$ASM_OPT -Dx64 -g -f elf64" ;; + esac + ;; *) ASM_OPT= ;; esac else