From 6c873c592b3371fa75ef5d09ffdcb168edd04828 Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Thu, 24 Oct 2024 11:46:10 +0900 Subject: [PATCH] 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 --- packaging/gdb.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 \ -- 2.34.1