Added linker specific code for Darwin for compiling mstpcrc (#833)

This commit is contained in:
Steve Karg
2024-10-29 12:33:55 -05:00
committed by GitHub
parent 05c6d06265
commit 15412b9ee5
+4
View File
@@ -21,7 +21,11 @@ LFLAGS += -Wl,$(BACNET_LIB)
endif
# GCC dead code removal
CFLAGS += -ffunction-sections -fdata-sections
ifeq ($(shell uname -s),Darwin)
LFLAGS += -Wl,-dead_strip
else
LFLAGS += -Wl,--gc-sections
endif
OBJS += ${SRCS:.c=.o}