mirror of
https://github.com/PurpleI2P/i2pd-tools
synced 2025-02-06 19:54:13 +00:00
try fixing freebsd build, issue #47
This commit is contained in:
parent
177caa457c
commit
9bce1715c7
7
Makefile
7
Makefile
@ -8,6 +8,8 @@ FLAGS = -Wall -std=c++11 -Wno-misleading-indentation
|
||||
|
||||
ifeq ($(UNAME),Linux)
|
||||
FLAGS += -g
|
||||
else ifeq ($(UNAME),FreeBSD)
|
||||
FLAGS += -g
|
||||
else
|
||||
# Win32
|
||||
FLAGS += -Os -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN
|
||||
@ -16,11 +18,14 @@ endif
|
||||
|
||||
INCFLAGS = -I$(LIBI2PD_PATH) -I$(LIBI2PD_CLIENT_PATH) -I$(I2PD_PATH)
|
||||
CXXFLAGS = $(FLAGS)
|
||||
LDFLAGS = -Wl,-rpath,/usr/local/lib
|
||||
LDFLAGS =
|
||||
LIBS = $(I2PD_PATH)/libi2pd.a -lboost_system$(BOOST_SUFFIX) -lboost_date_time$(BOOST_SUFFIX) -lboost_filesystem$(BOOST_SUFFIX) -lboost_program_options$(BOOST_SUFFIX) -lssl -lcrypto -lz
|
||||
|
||||
ifeq ($(UNAME),Linux)
|
||||
LIBS += -lrt -lpthread
|
||||
else ifeq ($(UNAME),FreeBSD)
|
||||
FLAGS += -lrt -lpthread
|
||||
LDFLAGS += -Wl,-rpath,/usr/local/lib
|
||||
else
|
||||
# Win32
|
||||
LIBS += -lws2_32 -lwsock32 -lgdi32 -liphlpapi -lstdc++ -lpthread
|
||||
|
Loading…
x
Reference in New Issue
Block a user