[changes brought forward from 0.15.2+ds1-2+rpi1 by Peter Michael Green <plugwash@raspbian.org> at Sun, 17 Mar 2019 13:18:55 +0000]
* Link against libatomic on armhf too for raspbian.
+ [changes introduced in 0.20.1+ds1-1+rpi1 by Peter Michael Green]
+ * Use no-as-needed when linking with libatomic to workaround library ordering issue.
+
-- Raspbian forward porter <root@raspbian.org> Fri, 11 Mar 2022 14:12:06 +0000
giada (0.20.1+ds1-1) unstable; urgency=medium
noatomicarch = $(shell dpkg-architecture -qDEB_HOST_ARCH | egrep -x "(armel|armhf|powerpc|powerpcspe|m68k|mips|mipsel|sh4|riscv64)")
# link with libatomic on architectures without built-in atomic
ifeq ($(if $(noatomicarch),atomic), atomic)
- LIBS += -latomic
+ LIBS += -Wl,-push-state -Wl,-no-as-needed -latomic -Wl,-pop-state
endif
DEB_LDFLAGS_MAINT_APPEND += $(LIBS)