summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpackaging/coreclr.spec9
1 files changed, 6 insertions, 3 deletions
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec
index 78f274a..326fa6d 100755
--- a/packaging/coreclr.spec
+++ b/packaging/coreclr.spec
@@ -146,9 +146,12 @@ done
%build
# disable asan build when global forced asan build
-%{?asan:export ASAN_OPTIONS=use_sigaltstack=false:`cat /ASAN_OPTIONS`}
-%{?asan:/usr/bin/gcc-unforce-options}
-%{?asan:export LD_LIBRARY_PATH=`pwd`/libicu-57.1}
+%{?asan:
+export ASAN_OPTIONS=use_sigaltstack=false:`cat /ASAN_OPTIONS`
+/usr/bin/gcc-unforce-options
+export LD_LIBRARY_PATH=`pwd`/libicu-57.1
+export CPPFLAGS+=" -DHAS_ADDRESS_SANITIZER "
+}
export CFLAGS=" --target=%{_host} "
export CXXFLAGS=" --target=%{_host} "