From 4b24b6b74c2e5c7fb09ff2c2a89e2c0a37a123a5 Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 24 Nov 2023 18:50:12 +0100 Subject: [PATCH] build, fix cross compiling under osx --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1120f8bb..2ab08f59 100644 --- a/Makefile +++ b/Makefile @@ -350,7 +350,7 @@ endif ifneq ($(findstring gcc,$(CC)),) ifneq ($(findstring SunOS,$(shell uname -a)),SunOS) -ifeq ($(findstring Darwin,$(shell uname -a)),Darwin) +ifneq ($(findstring clang,$(shell $(CC) -v 2>&1)),) LDFLAGS += -Wl,-map,$(TARGET).map else LDFLAGS += -Wl,-Map=$(TARGET).map -- 2.39.5