Added linker specific code for Darwin for compiling mstpcrc (#833)
This commit is contained in:
@@ -21,7 +21,11 @@ LFLAGS += -Wl,$(BACNET_LIB)
|
|||||||
endif
|
endif
|
||||||
# GCC dead code removal
|
# GCC dead code removal
|
||||||
CFLAGS += -ffunction-sections -fdata-sections
|
CFLAGS += -ffunction-sections -fdata-sections
|
||||||
|
ifeq ($(shell uname -s),Darwin)
|
||||||
|
LFLAGS += -Wl,-dead_strip
|
||||||
|
else
|
||||||
LFLAGS += -Wl,--gc-sections
|
LFLAGS += -Wl,--gc-sections
|
||||||
|
endif
|
||||||
|
|
||||||
OBJS += ${SRCS:.c=.o}
|
OBJS += ${SRCS:.c=.o}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user