echo "%{tsan_runtime_options}" > /TSAN_OPTIONS
chsmack -a "_" /TSAN_OPTIONS
+%package -n tsan-build-env
+Summary: TSan build environment
+Group: Development/Libraries
+Requires: libtsan
+
+%description -n tsan-build-env
+TSan build environment
+
+%post -n tsan-build-env
+echo "%{tsan_runtime_options}" > /TSAN_OPTIONS
+%ifarch aarch64
+echo ":run_under_qemu=1" >> /TSAN_OPTIONS
+%endif
+chsmack -a "_" /TSAN_OPTIONS
+
%package -n asan-build-env
Summary: Asan build environment
Group: Development/Libraries
%files -n tsan-runtime-env
%defattr(-,root,root,-)
/TSAN_OPTIONS
+
+%files -n tsan-build-env
+%defattr(-,root,root,-)
+/TSAN_OPTIONS
%endif
%ifarch %ubsan_arch