Browse Source

Add libdl (-ldl) flag. Fixes openssl errors when building statically.

pull/692/head
l-n-s 8 years ago
parent
commit
578083df3e
  1. 2
      Makefile.linux

2
Makefile.linux

@ -39,7 +39,7 @@ ifeq ($(USE_STATIC),yes) @@ -39,7 +39,7 @@ ifeq ($(USE_STATIC),yes)
LDLIBS += $(LIBDIR)/libssl.a
LDLIBS += $(LIBDIR)/libcrypto.a
LDLIBS += $(LIBDIR)/libz.a
LDLIBS += -lpthread -static-libstdc++ -static-libgcc -lrt
LDLIBS += -lpthread -static-libstdc++ -static-libgcc -lrt -ldl
USE_AESNI := no
else
LDLIBS = -lcrypto -lssl -lz -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread

Loading…
Cancel
Save