From: Dongkyun Son Date: Thu, 8 Mar 2018 01:27:58 +0000 (+0900) Subject: packaging: changed asan macro check for "bad %if condition" X-Git-Tag: accepted/tizen/5.0/base/20181101.090920^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_5.5_base_mobile_hotfix;p=platform%2Fupstream%2Flibelf0.git packaging: changed asan macro check for "bad %if condition" Change-Id: Iffdd7f74eee1a36efe73258aaab9d7309cfc993c Signed-off-by: Dongkyun Son --- diff --git a/packaging/libelf0.spec b/packaging/libelf0.spec index 1f0ab24..decc577 100644 --- a/packaging/libelf0.spec +++ b/packaging/libelf0.spec @@ -27,7 +27,7 @@ Conflicts: libelf1-devel This package contains all necessary include files and libraries needed to develop applications that require these. -%if %{asan} +%{?asan: %package noasan-static Summary: An ELF Object File Access Library (static library build without of ASan) Group: Development/Libraries/C and C++ @@ -37,7 +37,7 @@ Conflicts: libelf1-devel %description noasan-static This package contains static library built without of ASan. It is required for static builds in full ASan sanitized environment. -%endif +} %prep %setup -q -n libelf-%{version} @@ -48,14 +48,14 @@ export LDFLAGS+=" -z relro" %configure --disable-nls make %{?_smp_mflags} -%if %{asan} +%{?asan: /usr/bin/gcc-unforce-options mkdir noasan cd noasan ../configure --disable-nls --disable-shared make %{?_smp_mflags} all cd .. -%endif +} %install make install instroot=%{buildroot} @@ -83,11 +83,11 @@ rm -f %{buildroot}%{_libdir}/*.la %{_libdir}/pkgconfig/libelf.pc %{_includedir}/libelf -%if %{asan} +%{?asan: %files noasan-static %manifest %{name}.manifest %defattr(-,root,root) %{_libdir}/libelf-noasan.a -%endif +} %changelog