Manually pass in -latomic on armel to fix FTBFS
authorNilesh Patra <nilesh@debian.org>
Sat, 9 Oct 2021 13:41:14 +0000 (14:41 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 9 Oct 2021 13:41:14 +0000 (14:41 +0100)
Last-Update: 2021-10-05

Gbp-Pq: Name fix-armel-ftbfs.patch

src/Makevars.in

index e1df096b4248d513991696f9511e106c4ffc1c25..6fd0b2c0b3c4f8695017ed46351981e67c21eb8e 100644 (file)
@@ -3,6 +3,10 @@ PKG_LIBS = @libs@
 PKG_CXXFLAGS = @cflags@ -pthread
 CXX_STD = CXX11
 
+ifneq (,$(filter $(DEB_HOST_ARCH),armel armhf mipsel riscv64 m68k powerpc))
+PKG_LIBS += -latomic
+endif
+
 ABSL_LIBS = absl/base/internal/cycleclock.o \
     absl/base/internal/exponential_biased.o \
     absl/base/internal/low_level_alloc.o \