packaging: Add -fcommon to build with ASan 45/92045/1
authorDongkyun, Son <dongkyun.s@samsung.com>
Tue, 13 Sep 2016 08:45:24 +0000 (17:45 +0900)
committerDaeKwang Ryu <dkdk.ryu@samsung.com>
Thu, 13 Oct 2016 04:08:23 +0000 (13:08 +0900)
Change-Id: I467ca7d3f74859f419edf1785da0f7b3d2269509
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
packaging/SDL2.spec

index 3a21800..cd9493f 100755 (executable)
@@ -77,6 +77,9 @@ to develop SDL applications.
 %setup -q 
 
 %build
+%if "%{asan}" == "1"
+%restore_fcommon
+%endif
 %ifos linux
 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --disable-video-directfb --enable-video-tizen
 %else