Manually pass in -latomic on armel to fix FTBFS
authorNilesh Patra <nilesh@debian.org>
Thu, 3 Oct 2024 23:37:27 +0000 (08:37 +0900)
committerCharles Plessy <plessy@debian.org>
Thu, 3 Oct 2024 23:37:27 +0000 (08:37 +0900)
Last-Update: 2021-10-05

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

src/Makevars.in

index e6227cc9e0c4cf60c66df5b1d702e3e76866947b..1ce149034c48576b40c2fec6a5ca732a2d7ea686 100644 (file)
@@ -4,6 +4,10 @@ PKG_CXXFLAGS = @cflags@ -pthread
 
 CXX_STD = CXX14
 
+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 \