BuildRequires: gettext
BuildRequires: pkgconfig(libtzplatform-config)
+# For ASAN test
+%if "%{vd_asan}" == "1" || "%{asan}" == "1"
+BuildRequires: asan-force-options
+BuildRequires: asan-build-env
+BuildRequires: libasan
+%endif
+
#############################
# profile setup
#############################
CXXFLAGS+=" -D_ARCH_ARM_"
%endif
+%if "%{vd_asan}" == "1" || "%{asan}" == "1"
+CFLAGS+=" -fsanitize=address"
+CXXFLAGS+=" -fsanitize=address"
+LDFLAGS+=" -fsanitize=address"
+%endif
+
libtoolize --force
cd %{_builddir}/dali2-toolkit-%{version}/build/tizen