Bugfix: FTBFS on armel: missing -latomic (Closes: #975433)
authorReinhard Tartler <siretart@tauware.de>
Wed, 25 Nov 2020 20:44:35 +0000 (15:44 -0500)
committerReinhard Tartler <siretart@tauware.de>
Wed, 25 Nov 2020 20:44:58 +0000 (15:44 -0500)
debian/rules

index c9043af574a6f31fdd1e252ed42ab2e4110b5c1c..2e15493276a3a30509cc01998c3b1aa5c48a0f28 100755 (executable)
@@ -12,6 +12,10 @@ ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
 DEB_EXTRA_CONFIGURE_FLAGS += --cross-prefix=${DEB_HOST_GNU_TYPE}-
 endif
 
+ifneq (,$(filter $(DEB_HOST_ARCH), armel riscv64))
+  export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
+endif
+
 %:
        dh $@