From c76ecbe338c8eead30f2580332547279cf0c4a5a Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Thu, 15 Sep 2016 14:25:05 +0300 Subject: [PATCH] Switch off assembly implementations for ASan Change-Id: I0a5ed1f3d326d4e303f486ffe05428f75b3cef10 Signed-off-by: Slava Barinov --- packaging/SDL2.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packaging/SDL2.spec b/packaging/SDL2.spec index cd9493f..4e2496e 100755 --- a/packaging/SDL2.spec +++ b/packaging/SDL2.spec @@ -74,16 +74,17 @@ to develop SDL applications. %prep -%setup -q +%setup -q %build %if "%{asan}" == "1" %restore_fcommon +LDFLAGS+=" -lasan -ldl " %endif %ifos linux -CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --disable-video-directfb --enable-video-tizen +CFLAGS="$RPM_OPT_FLAGS" %configure --prefix=%{prefix} --disable-video-directfb --enable-video-tizen %{?asan:--disable-assembly} %else -%configure +%configure %{?asan:--disable-assembly} %endif make @@ -138,7 +139,7 @@ rm -rf $RPM_BUILD_ROOT * Wed Jan 19 2000 Sam Lantinga - Re-integrated spec file into SDL distribution -- 'name' and 'version' come from configure +- 'name' and 'version' come from configure - Some of the documentation is devel specific - Removed SMP support from %build - it doesn't work with libtool anyway -- 2.7.4