From 0df5b775956c9d807ae9261b328d7bdc297c9c82 Mon Sep 17 00:00:00 2001 From: redfish Date: Fri, 17 Aug 2018 23:18:40 -0400 Subject: [PATCH] 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' --- Makefile.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.linux b/Makefile.linux index b9a740ad..8689bd0c 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -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)