[neon/3rdparty/indi/Neon/release] debian: link to atomic on riscv64

Pino Toscano null at kde.org
Sat Feb 4 00:37:09 GMT 2023


Git commit 231b9569de71a6091ddf0c7d8f5a30268841430f by Pino Toscano.
Committed on 04/12/2022 at 19:55.
Pushed by carlosdem into branch 'Neon/release'.

link to atomic on riscv64

M  +2    -0    debian/changelog
M  +7    -0    debian/rules

https://invent.kde.org/neon/3rdparty/indi/commit/231b9569de71a6091ddf0c7d8f5a30268841430f

diff --git a/debian/changelog b/debian/changelog
index af8f840..ea47631 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
 indi (1.9.9+dfsg-2) UNRELEASED; urgency=medium
 
+  [ Pino Toscano ]
+  * Make sure to link with atomic on architectures that need it, i.e. riscv64.
 
  -- Debian Krap Maintainers <debian-qt-kde at lists.debian.org>  Sun, 04 Dec 2022 20:43:28 +0100
 
diff --git a/debian/rules b/debian/rules
index bd1224a..3a2e557 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,13 @@
 libpkgs_gen_strict_local_shlibs = $(libpkgs_all_packages)
 include /usr/share/pkg-kde-tools/qt-kde-team/2/library-packages.mk
 
+include /usr/share/dpkg/architecture.mk
+
+archs_that_need_atomic = riscv64
+ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(archs_that_need_atomic)))
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed -latomic -Wl,--as-needed
+endif
+
 %:
 	dh $@ --with sodeps
 



More information about the Neon-commits mailing list