Export ASAN_OPTIONS for the whole build 95/316895/1 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20241227.081615 accepted/tizen/unified/x/20241228.233248 accepted/tizen/unified/x/asan/20250113.002205
authorDongkyun Son <dongkyun.s@samsung.com>
Thu, 24 Oct 2024 02:46:10 +0000 (11:46 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Thu, 19 Dec 2024 06:46:30 +0000 (15:46 +0900)
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 <y.yamshchiko@samsung.com>
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/gdb.spec

index ed9f5825a1ca24417412704c256dc7463fc8d550..121a37d4d0b3b47c4c0e176c740c6602d6bf60eb 100644 (file)
@@ -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              \