diff --git a/Makefile b/Makefile index 7b293ba7..6adfbe87 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,7 @@ ifneq ($(OS),Windows_NT) CFLAGS += -fPIC -Wall -Werror endif CFLAGS += $(BACKENDS) $(BE_CFLAGS) -I$(MOSQ)/src -DDEBUG=1 $(OSSLINC) -LDFLAGS = $(BE_LDFLAGS) -L$(MOSQUITTO_SRC)/lib/ +LDFLAGS += $(BE_LDFLAGS) -L$(MOSQUITTO_SRC)/lib/ # LDFLAGS += -Wl,-rpath,$(../../../../pubgit/MQTT/mosquitto/lib) -lc # LDFLAGS += -export-dynamic LDADD = $(BE_LDADD) $(OSSLIBS) -lmosquitto diff --git a/config.mk.in b/config.mk.in index c05148ea..7327af12 100644 --- a/config.mk.in +++ b/config.mk.in @@ -15,3 +15,5 @@ MOSQUITTO_SRC = # Specify the path the OpenSSL here OPENSSLDIR = /usr +# Specify optional/additional linker flags here +LDFLAGS =