From 7c7e4eb2f2e6be8b399e517ac6e1bb59b5b409df Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Thu, 8 Mar 2018 10:27:58 +0900 Subject: [PATCH] packaging: changed asan macro check for "bad %if condition" Change-Id: Iffdd7f74eee1a36efe73258aaab9d7309cfc993c Signed-off-by: Dongkyun Son --- packaging/libelf0.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.7.4