summaryrefslogtreecommitdiff
path: root/packaging/qemu-accel.spec.in
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/qemu-accel.spec.in')
-rw-r--r--packaging/qemu-accel.spec.in9
1 files changed, 3 insertions, 6 deletions
diff --git a/packaging/qemu-accel.spec.in b/packaging/qemu-accel.spec.in
index e073b71..6c17e66 100644
--- a/packaging/qemu-accel.spec.in
+++ b/packaging/qemu-accel.spec.in
@@ -104,6 +104,9 @@ This package is used in qemu-accel to accelerate clang compiler.
%prep
%build
+%if 0%{?asan} || 0%{?ubsan}
+%gcc_unforce_options
+%endif
%install
set +x
@@ -119,12 +122,6 @@ binaries="%{_libdir}/libnsl.so.1 %{_libdir}/libnss_compat.so.2" # loaded via dlo
LD="/%{_lib}/ld-linux-x86-64.so.2"
%endif
-# Check if we use toolchain with sanitizers support
-[ -f /usr/bin/gcc-force-options ] && sanitizer_enabled=1
-if [ x"$sanitizer_enabled" == x"1" ]; then
- real_compiler=`find %{_bindir} -name '*-real' -printf '%{_bindir}/%%f '`
-fi
-
for executable in $LD \
%{_bindir}/bash \
%{_bindir}/{rpm,rpm2cpio,rpmdb,rpmkeys,rpmqpack,rpmbuild,rpmsign,rpmspec} \