Added linker specific code for Darwin for compiling mstpcrc (#833)
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user