From 14aea8229e1b0f3206d9544d9d335606fdf8ddaa Mon Sep 17 00:00:00 2001 From: "Aaron M. Ucko" Date: Fri, 26 Jul 2024 14:43:38 -0400 Subject: [PATCH] debian/rules: Link with -latomic on most 32-bit architectures ... excepting only x86 and armhf, which succeed as is. --- debian/changelog | 4 +++- debian/rules | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 8f9384e1..e020ae95 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,10 @@ ncbi-blast+ (2.16.0+ds-2) UNRELEASED; urgency=medium * NOT RELEASED YET. + * debian/rules: Link with -latomic on most 32-bit architectures + (excepting only x86 and armhf, which succeed as is). - -- Aaron M. Ucko Fri, 26 Jul 2024 14:28:01 -0400 + -- Aaron M. Ucko Fri, 26 Jul 2024 14:43:37 -0400 ncbi-blast+ (2.16.0+ds-1) unstable; urgency=medium diff --git a/debian/rules b/debian/rules index 30d50d9d..df219ec0 100755 --- a/debian/rules +++ b/debian/rules @@ -28,6 +28,12 @@ DEB_CONFIGURE_EXTRA_FLAGS += --without-strip --with-symbols export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie reproducible=-timeless export DEB_CFLAGS_MAINT_APPEND=-Wall -pedantic +ifeq ($(DEB_HOST_ARCH_BITS),32) + ifeq (,$(filter armhf %i386 x32,$(DEB_HOST_ARCH)) + export LIBS=-latomic + endif +endif + include /usr/share/dpkg/architecture.mk include /usr/share/dpkg/buildflags.mk -- 2.30.2