Fixed MSTPCAP build by removing BACnet Library

This commit is contained in:
Steve Karg
2024-07-16 17:31:41 -05:00
parent 734321a974
commit d1fe878d4a
+4 -4
View File
@@ -38,10 +38,9 @@ DEFINES = $(BACNET_DEFINES) -DBACDL_MSTP
# put all the flags together
INCLUDES = -I$(BACNET_SRC_DIR) -I$(BACNET_PORT_DIR)
CFLAGS += $(WARNINGS) $(DEBUGGING) $(OPTIMIZATION) $(BACNET_DEFINES) $(INCLUDES)
LFLAGS += -Wl,$(SYSTEM_LIB)
ifneq (${BACNET_LIB},)
LFLAGS += -Wl,$(BACNET_LIB)
endif
# Linker Flags - we don't use any from originating caller
LFLAGS := -Wl,$(SYSTEM_LIB)
# GCC dead code removal
CFLAGS += -ffunction-sections -fdata-sections
LFLAGS += -Wl,--gc-sections
@@ -54,6 +53,7 @@ TARGET_BIN = ${TARGET}$(TARGET_EXT)
all: Makefile ${TARGET_BIN}
${TARGET_BIN}: ${OBJS}
echo "LFLAGS=${LFLAGS}"
${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@
size $@
cp $@ ../../bin