From: Aaron M. Ucko Date: Fri, 26 Jul 2024 18:43:38 +0000 (-0400) Subject: debian/rules: Link with -latomic on most 32-bit architectures X-Git-Tag: archive/raspbian/2.16.0+ds-7+rpi1~1^2~40 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=14aea8229e1b0f3206d9544d9d335606fdf8ddaa;p=ncbi-blast%2B.git debian/rules: Link with -latomic on most 32-bit architectures ... excepting only x86 and armhf, which succeed as is. --- 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