mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 00:01:43 +00:00
link with boost_url
This commit is contained in:
1 parent
637507be67
commit
9d3d0ebdf9
8 files changed
+16
-10
No files matched your search
+3
-2
@@ -14,7 +14,7 @@ CXXVER := $(shell $(CXX) -dumpversion)
|
||||
ifneq ($(findstring clang,$(CXX)),)
|
||||
NEEDED_CXXFLAGS += -std=c++20
|
||||
ifeq ($(TORRENTS),yes)
|
||||
LDLIBS = -lboost_json
|
||||
LDLIBS = -lboost_json -lboost_url
|
||||
endif
|
||||
else ifeq ($(shell expr match ${CXXVER} "11"),2) # gcc 11
|
||||
NEEDED_CXXFLAGS += -std=c++20
|
||||
@@ -24,7 +24,7 @@ else ifeq ($(shell expr match ${CXXVER} "1[3-9]"),2) # gcc 13+
|
||||
NEEDED_CXXFLAGS += -std=c++23 -Wno-bidi-chars
|
||||
ifeq ($(TORRENTS),yes)
|
||||
# assume boost >= 1.81
|
||||
LDLIBS = -lboost_json
|
||||
LDLIBS = -lboost_json -lboost_url
|
||||
endif
|
||||
else # not supported
|
||||
$(error Compiler too old)
|
||||
@@ -40,6 +40,7 @@ ifeq ($(USE_STATIC),yes)
|
||||
LDLIBS += $(LIBDIR)/libboost_program_options.a
|
||||
ifeq ($(TORRENTS),yes)
|
||||
LDLIBS += $(LIBDIR)/libboost_json.a
|
||||
LDLIBS += $(LIBDIR)/libboost_url.a
|
||||
endif
|
||||
LDLIBS += $(LIBDIR)/libssl.a
|
||||
LDLIBS += $(LIBDIR)/libcrypto.a
|
||||
|
||||
Reference in new issue
Block a user