From c7685f9912e89509acff5d2db54f9b3e955df2ee Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Sun, 10 Apr 2022 17:38:45 +0800 Subject: [PATCH] Update mosquitto build shell script to fix install bug --- mqttd/makefile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mqttd/makefile b/mqttd/makefile index e29019b..9bdc1c6 100644 --- a/mqttd/makefile +++ b/mqttd/makefile @@ -39,9 +39,9 @@ CFLAGS+=-Ihal -Ietc -Ilylib -LDFLAGS+=-L hal -lhal -Letc -letc -Llylib -llylib +LIBS+=-L hal -lhal -Letc -letc -Llylib -llylib -LDFLAGS+=-lmosquitto -lpthread -lm +LIBS+=-lmosquitto -lpthread -lm SRCFILES = $(wildcard *.c) IMAGE_NAME=$(shell basename ${PWD}) @@ -60,7 +60,7 @@ cd ${MQTT_LIBPATH} && bash build.sh binary: ${SRCFILES} - $(CC) $(CFLAGS) -o ${IMAGE_NAME} $^ ${LDFLAGS} + $(CC) $(CFLAGS) -o ${IMAGE_NAME} $^ ${LDFLAGS} ${LIBS} @echo " Compile over" tag: -- Gitblit v1.9.1