From: Dongkyun Son Date: Thu, 24 Oct 2024 02:46:10 +0000 (+0900) Subject: Export ASAN_OPTIONS for the whole build X-Git-Tag: accepted/tizen/unified/20241227.081615^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified_x;p=platform%2Fupstream%2Fgdb.git Export ASAN_OPTIONS for the whole build Export ASAN_OPTIONS environment variable from the gdb.spec affects all of subordinate configure scripts where ASAN_OPTIONS environment variable is expected to be set. Set it to content read from /ASAN_OPTIONS file if exists, empty content otherwise. * packaging/gdb.spec: export ASAN_OPTIONS Change-Id: Ib2128c6c375a6f71c574ae6c51d6a9657c5f4dc4 Signed-off-by: Yaroslav Yamshchikov Signed-off-by: Dongkyun Son --- diff --git a/packaging/gdb.spec b/packaging/gdb.spec index ed9f5825a..121a37d4d 100644 --- a/packaging/gdb.spec +++ b/packaging/gdb.spec @@ -101,7 +101,9 @@ export LIB_CXXFLAGS=$CXXFLAGS export IPA_LDFLAGS=$LDFLAGS export CXXFLAGS+=" -fPIC" export LDFLAGS+=" -pie" - +%{?asan: +export ASAN_OPTIONS=$(cat /ASAN_OPTIONS) +} %{!?gdb_skip_configure: %configure \ --with-gdb-datadir=%{_datadir}/gdb \