]> dgit.raspbian.org Git - libfyaml.git/commitdiff
Link against libatomic where needed
authorTimo Röhling <roehling@debian.org>
Tue, 23 Sep 2025 07:45:40 +0000 (09:45 +0200)
committerTimo Röhling <roehling@debian.org>
Tue, 23 Sep 2025 07:47:34 +0000 (09:47 +0200)
debian/rules

index 9cead89267fb3df9ea4db304046f921cd1dcb960..43d53aa6b8f914706096d1eda7590fedd82ea129 100755 (executable)
@@ -2,6 +2,9 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--version-script=$(CURDIR)/debian/libfyaml0.map
+ifneq ($(filter armel m68k powerpc sh4,$(DEB_HOST_ARCH)),)
+DEB_LDFLAGS_MAINT_APPEND += -latomic
+endif
 
 # debian builds do not like testsuites to download stuff
 %: