From c52e3994ca353fb7c05b2354653f87b3b77f8040 Mon Sep 17 00:00:00 2001 From: Zack Buhman Date: Tue, 9 Dec 2025 16:18:01 -0600 Subject: [PATCH] Makefile add Darwin uname --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b6baca1..55cf082 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,11 @@ else OBJARCH = -O elf64-x86-64 -B i386:x86-64 endif -else +else ifeq ($(shell uname),Darwin) + +OBJARCH += -O mach-o-x86-64 -B i386:x86-64 + +else # assume Windows ifdef I386 OBJARCH += -O pe-i386 -B i386