From 985548471892c5f2a7430c5f7b4c03fe39f0134f Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 25 Jun 2019 21:55:18 +0800
Subject: [PATCH] Update mqttd program, add cJSON parser and test ok with memory leak

---
 mqttd/makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/mqttd/makefile b/mqttd/makefile
index 8878b53..050907b 100644
--- a/mqttd/makefile
+++ b/mqttd/makefile
@@ -37,10 +37,11 @@
 export CFLAGS
 export LDFLAGS
 
+
 CFLAGS+=-Ihal -Ilylib
 LDFLAGS+=-L hal -lhal -Llylib -llylib
 
-LDFLAGS+=-lmosquitto
+LDFLAGS+=-lmosquitto -lpthread -lm
 
 SRCFILES = $(wildcard *.c)
 IMAGE_NAME=$(shell basename ${PWD})

--
Gitblit v1.9.1