mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-09 15:50:26 +03:00
[make] fix windows msys2 build
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
9b82265cd8
commit
c2d7133174
2
Makefile
2
Makefile
@ -121,7 +121,7 @@ obj/%.o: %.cpp | mk_obj_dir
|
|||||||
-include $(DEPS)
|
-include $(DEPS)
|
||||||
|
|
||||||
$(I2PD): $(DAEMON_OBJS) $(ARLIB) $(ARLIB_CLIENT) $(ARLIB_LANG)
|
$(I2PD): $(DAEMON_OBJS) $(ARLIB) $(ARLIB_CLIENT) $(ARLIB_LANG)
|
||||||
$(CXX) -o $@ $(DEFINES) $(LDFLAGS) $^ $(LDLIBS)
|
$(CXX) $(DEFINES) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
||||||
|
|
||||||
$(SHLIB): $(LIB_OBJS)
|
$(SHLIB): $(LIB_OBJS)
|
||||||
ifneq ($(USE_STATIC),yes)
|
ifneq ($(USE_STATIC),yes)
|
||||||
|
@ -5,14 +5,11 @@ WINDRES = windres
|
|||||||
|
|
||||||
CXXFLAGS := $(CXX_DEBUG) -fPIC -msse
|
CXXFLAGS := $(CXX_DEBUG) -fPIC -msse
|
||||||
INCFLAGS := -I$(DAEMON_SRC_DIR) -IWin32
|
INCFLAGS := -I$(DAEMON_SRC_DIR) -IWin32
|
||||||
LDFLAGS := ${LD_DEBUG} -static
|
LDFLAGS := ${LD_DEBUG} -static -fPIC -msse
|
||||||
|
|
||||||
NEEDED_CXXFLAGS += -std=c++17
|
NEEDED_CXXFLAGS += -std=c++17
|
||||||
DEFINES += -DWIN32_LEAN_AND_MEAN
|
DEFINES += -DWIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
# Boost libraries suffix
|
|
||||||
BOOST_SUFFIX = -mt
|
|
||||||
|
|
||||||
# UPNP Support
|
# UPNP Support
|
||||||
ifeq ($(USE_UPNP),yes)
|
ifeq ($(USE_UPNP),yes)
|
||||||
DEFINES += -DUSE_UPNP -DMINIUPNP_STATICLIB
|
DEFINES += -DUSE_UPNP -DMINIUPNP_STATICLIB
|
||||||
@ -20,20 +17,20 @@ ifeq ($(USE_UPNP),yes)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
LDLIBS += \
|
LDLIBS += \
|
||||||
-lboost_system$(BOOST_SUFFIX) \
|
$(MINGW_PREFIX)/lib/libboost_system-mt.a \
|
||||||
-lboost_date_time$(BOOST_SUFFIX) \
|
$(MINGW_PREFIX)/lib/libboost_date_time-mt.a \
|
||||||
-lboost_filesystem$(BOOST_SUFFIX) \
|
$(MINGW_PREFIX)/lib/libboost_filesystem-mt.a \
|
||||||
-lboost_program_options$(BOOST_SUFFIX) \
|
$(MINGW_PREFIX)/lib/libboost_program_options-mt.a \
|
||||||
-lssl \
|
$(MINGW_PREFIX)/lib/libssl.a \
|
||||||
-lcrypto \
|
$(MINGW_PREFIX)/lib/libcrypto.a \
|
||||||
-lz \
|
$(MINGW_PREFIX)/lib/libz.a \
|
||||||
-lwsock32 \
|
-lwsock32 \
|
||||||
-lws2_32 \
|
-lws2_32 \
|
||||||
-lgdi32 \
|
|
||||||
-liphlpapi \
|
-liphlpapi \
|
||||||
|
-lcrypt32 \
|
||||||
|
-lgdi32 \
|
||||||
-lole32 \
|
-lole32 \
|
||||||
-luuid \
|
-luuid
|
||||||
-lpthread
|
|
||||||
|
|
||||||
ifeq ($(USE_WIN32_APP), yes)
|
ifeq ($(USE_WIN32_APP), yes)
|
||||||
DEFINES += -DWIN32_APP
|
DEFINES += -DWIN32_APP
|
||||||
@ -48,6 +45,7 @@ endif
|
|||||||
|
|
||||||
ifeq ($(USE_AESNI),yes)
|
ifeq ($(USE_AESNI),yes)
|
||||||
NEEDED_CXXFLAGS += -maes
|
NEEDED_CXXFLAGS += -maes
|
||||||
|
LDFLAGS += -maes
|
||||||
DEFINES += -D__AES__
|
DEFINES += -D__AES__
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user