fix linux build
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
d670fc3928
commit
1a8346542f
6
Makefile
6
Makefile
@ -24,12 +24,8 @@ else
|
|||||||
ifeq ($(STATIC),yes)
|
ifeq ($(STATIC),yes)
|
||||||
LIBPATH = /usr/lib/$(SYS)
|
LIBPATH = /usr/lib/$(SYS)
|
||||||
LDLIBS = -pthread $(LIBPATH)/libsodium.a -lpthread -ldl
|
LDLIBS = -pthread $(LIBPATH)/libsodium.a -lpthread -ldl
|
||||||
else ifeq ($(STATIC),full)
|
|
||||||
LIBPATH = /usr/lib/$(SYS)
|
|
||||||
LDFLAGS += -static
|
|
||||||
LDLIBS = -pthread $(LIBPATH)/libsodium.a -lpthread -ldl
|
|
||||||
else
|
else
|
||||||
LDLIBS = -lcrypto -lpthread
|
LDLIBS = -lsodium -lpthread
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#else
|
#else
|
||||||
#include <ifaddrs.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
////////////////////////////////////////////////// Заставка
|
////////////////////////////////////////////////// Заставка
|
||||||
|
Loading…
x
Reference in New Issue
Block a user