Add restore_fcommon macro for ASan 29/86829/1 accepted/tizen/common/20160905.171354 accepted/tizen/ivi/20160906.060932 accepted/tizen/mobile/20160906.060825 accepted/tizen/tv/20160906.060846 accepted/tizen/wearable/20160906.060914 submit/tizen/20160905.002202
authorYunjin Lee <yunjin-.lee@samsung.com>
Mon, 5 Sep 2016 06:25:21 +0000 (15:25 +0900)
committerYunjin Lee <yunjin-.lee@samsung.com>
Mon, 5 Sep 2016 06:25:21 +0000 (15:25 +0900)
Change-Id: I52e98248544950fab7a2b09852d1ae94c6912ed2
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
packaging/privilege-checker.spec

index a82bb40..257e216 100644 (file)
@@ -60,6 +60,9 @@ The Privilege Verifier Utility provides functions to verify privilege informatio
 %setup -q
 
 %build
+%if "%{asan}" == "1"
+%restore_fcommon
+%endif
 
 %if "%{?profile}" == "tv"
     __PROFILE_TYPE="TV"
@@ -73,8 +76,8 @@ The Privilege Verifier Utility provides functions to verify privilege informatio
 %endif
 %endif
 
-export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
+export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE "
+export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE "
 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
 
 echo cmake . -DPREFIX=%{_prefix} \