mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-02 11:04:00 +01:00
link with miniupnp
This commit is contained in:
parent
fedbf2cc44
commit
0a4888a18f
|
@ -6,10 +6,15 @@ NEEDED_CXXFLAGS = -std=c++11
|
||||||
BOOST_SUFFIX = -mt
|
BOOST_SUFFIX = -mt
|
||||||
INCFLAGS = -I/usr/include/ -I/usr/local/include/
|
INCFLAGS = -I/usr/include/ -I/usr/local/include/
|
||||||
LDFLAGS = -Wl,-rpath,/usr/local/lib \
|
LDFLAGS = -Wl,-rpath,/usr/local/lib \
|
||||||
-L/usr/local/lib \
|
-L/usr/local/lib
|
||||||
-L/c/dev/openssl \
|
|
||||||
-L/c/dev/boost/lib
|
# UPNP Support
|
||||||
LDLIBS = \
|
ifeq ($(USE_UPNP),1)
|
||||||
|
CXXFLAGS += -DUSE_UPNP -DMINIUPNP_STATICLIB
|
||||||
|
LDLIBS = -Wl,-Bstatic -lminiupnpc
|
||||||
|
endif
|
||||||
|
|
||||||
|
LDLIBS += \
|
||||||
-Wl,-Bstatic -lboost_system$(BOOST_SUFFIX) \
|
-Wl,-Bstatic -lboost_system$(BOOST_SUFFIX) \
|
||||||
-Wl,-Bstatic -lboost_date_time$(BOOST_SUFFIX) \
|
-Wl,-Bstatic -lboost_date_time$(BOOST_SUFFIX) \
|
||||||
-Wl,-Bstatic -lboost_filesystem$(BOOST_SUFFIX) \
|
-Wl,-Bstatic -lboost_filesystem$(BOOST_SUFFIX) \
|
||||||
|
@ -32,11 +37,6 @@ ifeq ($(USE_WIN32_APP), yes)
|
||||||
DAEMON_OBJS += $(patsubst %.rc,obj/%.o,$(DAEMON_RC))
|
DAEMON_OBJS += $(patsubst %.rc,obj/%.o,$(DAEMON_RC))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# UPNP Support
|
|
||||||
ifeq ($(USE_UPNP),1)
|
|
||||||
CXXFLAGS += -DUSE_UPNP
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(USE_AESNI),1)
|
ifeq ($(USE_AESNI),1)
|
||||||
CPU_FLAGS = -maes -DAESNI
|
CPU_FLAGS = -maes -DAESNI
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue