From: David Carlier Date: Sun, 15 Mar 2020 10:30:51 +0000 (+0000) Subject: BUILD: on ARM, must be linked to libatomic. X-Git-Tag: v2.2-dev5~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d93e6ec4cc44b48bc5370c724d3661b52ba9976c;p=thirdparty%2Fhaproxy.git BUILD: on ARM, must be linked to libatomic. For load/store operations, needs to be linked to. tested on raspberry. --- diff --git a/Makefile b/Makefile index c04e699d73..469001af3d 100644 --- a/Makefile +++ b/Makefile @@ -328,6 +328,9 @@ ifeq ($(TARGET),linux-glibc) USE_CPU_AFFINITY USE_THREAD USE_EPOLL USE_FUTEX USE_LINUX_TPROXY \ USE_ACCEPT4 USE_LINUX_SPLICE USE_PRCTL USE_THREAD_DUMP USE_NS USE_TFO \ USE_GETADDRINFO USE_BACKTRACE) +ifneq ($(shell echo __arm__/__aarch64__ | $(CC) -E -xc - | grep -v '^#'),__arm__/__aarch64__) + TARGET_LDFLAGS=-latomic +endif endif # For linux >= 2.6.28, glibc without new features