diff options
Diffstat (limited to 'packaging/coreclr.spec')
-rwxr-xr-x | packaging/coreclr.spec | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec index ad23d10a9d..5de40d1251 100755 --- a/packaging/coreclr.spec +++ b/packaging/coreclr.spec @@ -144,9 +144,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} " |