Control: tags -1 ftbfs patch On Fri, May 22, 2020 at 11:43:24PM +0800, Boyuan Yang wrote: >... > /usr/include/c++/9/bits/atomic_base.h:541: undefined reference to > `__atomic_fetch_add_8' > collect2: error: ld returned 1 exit status > make[1]: *** [mk/lib.mk:104: src/libutil/libnixutil.so] Error 1 >...
Fix/workaround: --- debian/rules.old 2020-05-23 18:01:16.777117658 +0000 +++ debian/rules 2020-05-23 18:01:40.436904447 +0000 @@ -16,6 +16,10 @@ # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +ifneq (,$(filter $(DEB_HOST_ARCH), armel mipsel powerpc)) + export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed -latomic -Wl,--as-needed +endif + export EDITLINE_CFLAGS = "-DREADLINE" export EDITLINE_LIBS = "/usr/lib/$(DEB_HOST_MULTIARCH)/libhistory.so /usr/lib/$(DEB_HOST_MULTIARCH)/libreadline.so" export V=1