link with -latomic when using address sanitizer
authorDmitry Shachnev <mitya57@debian.org>
Wed, 16 Aug 2023 17:44:00 +0000 (18:44 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Wed, 16 Aug 2023 17:44:00 +0000 (18:44 +0100)
Bug: https://bugs.debian.org/1016041
Forwarded: not-needed
Last-Update: 2022-08-15

Gbp-Pq: Name asan_atomic.diff

share/qbs/modules/Sanitizers/address/asan.qbs

index 9ae6f285e88de8c54b06757c9fbbb466bea16957..d1f3156330f70d11e233123fd70c12091474f8fd 100644 (file)
@@ -72,4 +72,10 @@ Module {
         }
         return flags;
     }
+
+    cpp.dynamicLibraries: {
+        if (_enabled)
+            return ["atomic"];
+        return [];
+    }
 }