packaging: Switching on -fcommon for Adress Sanitizer
[platform/upstream/adns.git] / packaging / adns.spec
index 96c6658..27831e4 100644 (file)
@@ -37,6 +37,10 @@ programs with libads support.
 cp %{SOURCE1001} .
 
 %build
+%if "%{asan}" == "1"
+%restore_fcommon
+%endif
+
 %reconfigure
 %__make %{?_smp_mflags} all