debian/rules: Link with -latomic on most 32-bit architectures
authorAaron M. Ucko <ucko@debian.org>
Fri, 26 Jul 2024 18:43:38 +0000 (14:43 -0400)
committerAaron M. Ucko <ucko@debian.org>
Fri, 26 Jul 2024 18:43:38 +0000 (14:43 -0400)
... excepting only x86 and armhf, which succeed as is.

debian/changelog
debian/rules

index 8f9384e131bb534f7e943283de7c111422a6920c..e020ae957ec2cae19a2ccd5961e885741f276a23 100644 (file)
@@ -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 <ucko@debian.org>  Fri, 26 Jul 2024 14:28:01 -0400
+ -- Aaron M. Ucko <ucko@debian.org>  Fri, 26 Jul 2024 14:43:37 -0400
 
 ncbi-blast+ (2.16.0+ds-1) unstable; urgency=medium
 
index 30d50d9d3a2d1d67c4899b48894424b293195166..df219ec0aada0357bf9187eef3007d2c04a5ae9f 100755 (executable)
@@ -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