diff -Nru librandomx-1.1.7/debian/changelog librandomx-1.1.7/debian/changelog --- librandomx-1.1.7/debian/changelog 2020-03-20 13:47:37.000000000 +0000 +++ librandomx-1.1.7/debian/changelog 2020-05-20 09:24:40.000000000 +0000 @@ -1,3 +1,10 @@ +librandomx (1.1.7-4) unstable; urgency=medium + + * fix link with libatomic on armel/mipsel/powerpc; + closes: bug#961100, thanks to Adrian Bunk + + -- Jonas Smedegaard Wed, 20 May 2020 11:24:40 +0200 + librandomx (1.1.7-3) unstable; urgency=medium * declare compliance with Debian Policy 4.5.0 diff -Nru librandomx-1.1.7/debian/rules librandomx-1.1.7/debian/rules --- librandomx-1.1.7/debian/rules 2019-12-02 14:57:15.000000000 +0000 +++ librandomx-1.1.7/debian/rules 2020-05-20 09:23:00.000000000 +0000 @@ -11,6 +11,10 @@ # avoid executable stack in assembly code export DEB_CFLAGS_MAINT_APPEND = -Wa,--noexecstack +ifneq (,$(filter $(DEB_HOST_ARCH), armel mipsel powerpc)) +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed -latomic -Wl,--as-needed +endif + # Let d-shlibs calculate development package dependencies # and handle shared library install override_dh_install: $(DOCS)