mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
don't link with boost::filesystem in newer versions
This commit is contained in:
parent
ac876a0cd5
commit
b3aa5ad998
10
Makefile.bsd
10
Makefile.bsd
@ -1,5 +1,10 @@
|
|||||||
CXX = clang++
|
CXX = clang++
|
||||||
CXXFLAGS ?= ${CXX_DEBUG} -Wall -Wextra -Wno-unused-parameter -pedantic -Wno-misleading-indentation
|
CXXFLAGS ?= ${CXX_DEBUG} -Wall -Wextra -Wno-unused-parameter -pedantic -Wno-misleading-indentation
|
||||||
|
DEFINES = -D_GLIBCXX_USE_NANOSLEEP=1
|
||||||
|
INCFLAGS = -I/usr/include/ -I/usr/local/include/
|
||||||
|
LDFLAGS = ${LD_DEBUG} -Wl,-rpath,/usr/local/lib -L/usr/local/lib
|
||||||
|
LDLIBS = -lcrypto -lssl -lz -lpthread -lboost_system -lboost_program_options
|
||||||
|
|
||||||
## NOTE: NEEDED_CXXFLAGS is here so that custom CXXFLAGS can be specified at build time
|
## NOTE: NEEDED_CXXFLAGS is here so that custom CXXFLAGS can be specified at build time
|
||||||
## **without** overwriting the CXXFLAGS which we need in order to build.
|
## **without** overwriting the CXXFLAGS which we need in order to build.
|
||||||
## For example, when adding 'hardening flags' to the build
|
## For example, when adding 'hardening flags' to the build
|
||||||
@ -9,10 +14,7 @@ CXXFLAGS ?= ${CXX_DEBUG} -Wall -Wextra -Wno-unused-parameter -pedantic -Wno-misl
|
|||||||
CXXVER := $(shell $(CXX) -dumpversion)
|
CXXVER := $(shell $(CXX) -dumpversion)
|
||||||
ifeq (${CXXVER}, "4.2.1") # older clang always returned 4.2.1
|
ifeq (${CXXVER}, "4.2.1") # older clang always returned 4.2.1
|
||||||
NEEDED_CXXFLAGS = -std=c++11
|
NEEDED_CXXFLAGS = -std=c++11
|
||||||
|
LDLIBS += -lboost_filesystem
|
||||||
else # newer versions support C++17
|
else # newer versions support C++17
|
||||||
NEEDED_CXXFLAGS = -std=c++17
|
NEEDED_CXXFLAGS = -std=c++17
|
||||||
endif
|
endif
|
||||||
DEFINES = -D_GLIBCXX_USE_NANOSLEEP=1
|
|
||||||
INCFLAGS = -I/usr/include/ -I/usr/local/include/
|
|
||||||
LDFLAGS = ${LD_DEBUG} -Wl,-rpath,/usr/local/lib -L/usr/local/lib
|
|
||||||
LDLIBS = -lcrypto -lssl -lz -lboost_system -lboost_filesystem -lboost_program_options -lpthread
|
|
||||||
|
Loading…
Reference in New Issue
Block a user