Manually pass in -latomic on armel to fix FTBFS
authorNilesh Patra <nilesh@debian.org>
Fri, 30 Jun 2023 19:49:50 +0000 (20:49 +0100)
committerAndreas Tille <tille@debian.org>
Fri, 30 Jun 2023 19:49:50 +0000 (20:49 +0100)
Last-Update: 2021-10-05

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

src/Makevars.in

index 2bc496eee96f5aa55f80b7b34305080140f98c67..b3fcd35a58971589d4a46ba198ee375c625f2d55 100644 (file)
@@ -4,6 +4,10 @@ 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/low_level_alloc.o \
     absl/base/internal/raw_logging.o \