build, fix cross compiling under osx
authorkub <derkub@gmail.com>
Fri, 24 Nov 2023 17:50:12 +0000 (18:50 +0100)
committerkub <derkub@gmail.com>
Fri, 24 Nov 2023 17:51:32 +0000 (18:51 +0100)
Makefile

index 1120f8b..2ab08f5 100644 (file)
--- 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