From 3c85a264df9ed139e8a97d02b377a534549c7108 Mon Sep 17 00:00:00 2001 From: e Date: Tue, 9 Oct 2018 15:21:02 -0400 Subject: [PATCH] Fix makefile to use installed mosquitto lib, and to use pack_rebuild() --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 39c35d9..92b5216 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PACKSODIR=lib/x86_64-linux -MOSQUITTO_LIBS=-Lext ext/libmosquitto.a +MOSQUITTO_LIBS=-lmosquitto SO=so SOEXT=so SOBJ=$(PACKSODIR)/mqtt.$(SOEXT) @@ -8,7 +8,7 @@ CWFLAGS=-Wall CMFLAGS=-fno-strict-aliasing -pthread -fPIC -std=c99 CIFLAGS=-I. -Iext/include DEFS= -CFLAGS=$(COFLAGS) $(CWFLAGS) $(CMFLAGS) $(CIFLAGS) $(PKGCFLAGS) $(DEFS) +CFLAGS+=$(COFLAGS) $(CWFLAGS) $(CMFLAGS) $(CIFLAGS) $(PKGCFLAGS) $(DEFS) CXXFLAGS=$(CFLAGS) LD=gcc