From bc85f688734107d1587d3a1fb2ef491fc0aae5ef Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 9 Feb 2025 09:10:44 +0100 Subject: [PATCH] Linking with libatomic on architectures where this is needed to fix FTBFS, thanks to Adrian Bunk (Closes: #1038642). Signed-off-by: Daniel Baumann --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index 950156b..2df2d96 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,9 @@ #!/usr/bin/make -f +ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mipsel powerpc sh4)) + export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed +endif + %: dh ${@}