Manually pass in -latomic on armel to fix FTBFS
authorNilesh Patra <nilesh@debian.org>
Wed, 6 Oct 2021 10:38:58 +0000 (11:38 +0100)
committerNilesh Patra <nilesh@debian.org>
Wed, 6 Oct 2021 10:38:58 +0000 (11:38 +0100)
Last-Update: 2021-10-05

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

src/Makevars.in

index e1df096b4248d513991696f9511e106c4ffc1c25..1680267b42c179f5356bebbeb3f47019d178aaf4 100644 (file)
@@ -3,6 +3,10 @@ PKG_LIBS = @libs@
 PKG_CXXFLAGS = @cflags@ -pthread
 CXX_STD = CXX11
 
+ifneq (,$(filter $(DEB_HOST_ARCH),armel 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 \