Switch off assembly implementations for ASan 46/92046/1
authorSlava Barinov <v.barinov@samsung.com>
Thu, 15 Sep 2016 11:25:05 +0000 (14:25 +0300)
committerDaeKwang Ryu <dkdk.ryu@samsung.com>
Thu, 13 Oct 2016 04:08:46 +0000 (13:08 +0900)
Change-Id: I0a5ed1f3d326d4e303f486ffe05428f75b3cef10
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/SDL2.spec

index cd9493f..4e2496e 100755 (executable)
@@ -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 <slouken@libsdl.org>
 - 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