diff -Nru pdns-4.2.0/debian/changelog pdns-4.2.0/debian/changelog
--- pdns-4.2.0/debian/changelog	2019-08-30 10:53:16.000000000 +0000
+++ pdns-4.2.0/debian/changelog	2019-09-18 00:17:49.000000000 +0000
@@ -1,3 +1,10 @@
+pdns (4.2.0-1+rpi1) bullseye-staging; urgency=medium
+
+  [changes brought forward from 4.1.0-1+rpi1 by Peter Michael Green <plugwash@raspbian.org> at Sun, 31 Dec 2017 14:27:56 +0000]
+  * Add -latomic to ldflags.
+
+ -- Peter Michael Green <plugwash@raspbian.org>  Wed, 18 Sep 2019 00:17:49 +0000
+
 pdns (4.2.0-1) unstable; urgency=medium
 
   * New upstream version 4.2.0, upload to unstable.
diff -Nru pdns-4.2.0/debian/rules pdns-4.2.0/debian/rules
--- pdns-4.2.0/debian/rules	2019-08-30 10:53:16.000000000 +0000
+++ pdns-4.2.0/debian/rules	2019-09-18 00:17:49.000000000 +0000
@@ -8,6 +8,7 @@
 
 # Vendor and version
 CXXFLAGS += -DPACKAGEVERSION='"$(DEB_VERSION).$(DEB_VENDOR)"'
+LDFLAGS += -latomic
 
 # Disable systemd integration on non-linux archs
 ifeq ($(DEB_HOST_ARCH_OS),linux)