From 04148de61befd03d454844f306c336c5d7795be6 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Tue, 20 Dec 2016 15:25:14 +0100 Subject: [PATCH] allow additional LD flags --- Makefile | 2 +- config.mk.in | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 =