Change-Id: I2c06d07f8f57ef41ad74c865ce85ad42094feb29
Signed-off-by: JinWang An <jinwang.an@samsung.com>
%build
export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -pie"
export CFLAGS="$CXXFLAGS"
-
# Set up default CMake configuration for ranlib, ar and nm, so we can build
# both CMake and target packages with LTO
insertconfline() {
insertconfline "set (CMAKE_AR \"$(which %__ar)\" CACHE FILEPATH \"Path to ar tool.\" FORCE)"
insertconfline "set (CMAKE_NM \"$(which %__nm)\" CACHE FILEPATH \"Path to nm tool.\" FORCE)"
+%if 0%{?asan}
+sed -i '1719s/libs=\"${libs} -ldl -lrt\"/libs=\"${libs} -ldl -lrt -lasan\"/' bootstrap
+%endif
+
./configure \
--prefix=%{_prefix} \
--datadir=/share/%{name} \