summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2019-07-11 16:25:46 +0300
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>2019-07-18 15:38:18 +0900
commit59075187072252b2f048d2b4616f3f86960a2be6 (patch)
tree62283a4ea9fdc814237b20e8b97be87f11a927e5 /packaging
parentf40b1b1786db0685e64272ed339c19ae0b9cc270 (diff)
downloadcoreclr-59075187072252b2f048d2b4616f3f86960a2be6.tar.gz
coreclr-59075187072252b2f048d2b4616f3f86960a2be6.tar.bz2
coreclr-59075187072252b2f048d2b4616f3f86960a2be6.zip
[Tizen] Define -DHAS_ADDRESS_SANITIZER for ASan buildsubmit/tizen/20190718.065523accepted/tizen/unified/20190718.220406
This define turns on new and delete operators compatibility mode for build with Address Sanitizer. It allows Tizen libasan to intercept operators and prevents alloc-dealloc-mismatch errors. Change-Id: If72b1d42dd99eaaf11d3cb1232006ee0e2e411c3 Signed-off-by: Slava Barinov <v.barinov@samsung.com>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/coreclr.spec9
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} "