build, fix cross compiling under osx

This commit is contained in:
kub 2023-11-24 18:50:12 +01:00
parent 575d224780
commit 4b24b6b74c

View file

@ -350,7 +350,7 @@ endif
ifneq ($(findstring gcc,$(CC)),) ifneq ($(findstring gcc,$(CC)),)
ifneq ($(findstring SunOS,$(shell uname -a)),SunOS) 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 LDFLAGS += -Wl,-map,$(TARGET).map
else else
LDFLAGS += -Wl,-Map=$(TARGET).map LDFLAGS += -Wl,-Map=$(TARGET).map