From fbbb2d0b2aba4ddc42651096b20dd4a7ca4a33f2 Mon Sep 17 00:00:00 2001
From: Guo Wenxue <guowenxue@gmail.com>
Date: Wed, 21 Sep 2022 23:04:57 +0800
Subject: [PATCH] Merge branch 'master' of ssh://master.iot-yun.club:2280/raspberrypi

---
 3rdparty/x86/mosquitto/build.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/3rdparty/x86/mosquitto/build.sh b/3rdparty/x86/mosquitto/build.sh
index 35178a2..ce5ae91 100755
--- a/3rdparty/x86/mosquitto/build.sh
+++ b/3rdparty/x86/mosquitto/build.sh
@@ -54,7 +54,7 @@
     SRC_NAME=mosquitto-2.0.14
     PACK_SUFIX=tar.gz
 
-    if [ -f ${PREFIX_PATH}/lib/libmosquitto.so ] ; then
+    if [ -f ${LIBS_PATH}/lib/libmosquitto.so ] ; then
         msg_banner "$SRC_NAME already compile and installed"
         return 0;
     fi
@@ -85,6 +85,9 @@
 	CLIENT_LDFLAGS="-L ${LIBS_PATH}/lib" PLUGIN_LDFLAGS="-L ${LIBS_PATH}/lib" BROKER_LDFLAGS="-L ${LIBS_PATH}/lib"
 
     check_result "ERROR: compile ${SRC_NAME} failure"
+
+	make DESTDIR=${LIBS_PATH} install
+    check_result "ERROR: install ${SRC_NAME} failure"
 }
 
 # compile cjson first

--
Gitblit v1.9.1