From 06b0a504623d9579b04d0e7cb5b17a01ace45038 Mon Sep 17 00:00:00 2001 From: MXPLRS | Kirill Date: Thu, 1 Dec 2016 20:17:28 +0300 Subject: [PATCH] static libminiupnpc --- Makefile.linux | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile.linux b/Makefile.linux index 28081c81..8def8299 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -45,10 +45,14 @@ else LDLIBS = -lcrypto -lssl -lz -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread endif -# UPNP Support (miniupnpc 1.5 or 1.6) +# UPNP Support (miniupnpc 1.5 and higher) ifeq ($(USE_UPNP),yes) - LDFLAGS += -lminiupnpc CXXFLAGS += -DUSE_UPNP +ifeq ($(USE_STATIC),yes) + LDLIBS += $(LIBDIR)/libminiupnpc.a +else + LDLIBS += -lminiupnpc +endif endif IS_64 := $(shell $(CXX) -dumpmachine 2>&1 | $(GREP) -c "64")