Browse Source

fix linux build

Signed-off-by: r4sas <r4sas@i2pmail.org>
master
R4SAS 4 years ago
parent
commit
1a8346542f
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 6
      Makefile
  2. 2
      sygcpp.cpp

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

2
sygcpp.cpp

@ -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…
Cancel
Save