Browse Source

makefile: linux: add -latomic

Tested on Arch Linux and Debian unstable with gcc 8.2.0. On Arch Linux
on x86_64 it built without this, but also builds with this. Without this
patch On Debian unstable on PPC linking fail with undefined symbols:
/usr/include/c++/8/bits/atomic_base.h:396: undefined reference to `__atomic_load_8'
pull/1226/head
redfish 6 years ago
parent
commit
0df5b77595
  1. 2
      Makefile.linux

2
Makefile.linux

@ -44,7 +44,7 @@ ifeq ($(USE_STATIC),yes) @@ -44,7 +44,7 @@ ifeq ($(USE_STATIC),yes)
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
LDLIBS = -lcrypto -lssl -lz -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lpthread -latomic
endif
# UPNP Support (miniupnpc 1.5 and higher)

Loading…
Cancel
Save