packaging: add support option for -fstack-protector-strong 81/225581/1 accepted/tizen/unified/20200312.131139 accepted/tizen/unified/20200316.221029 submit/tizen/20200311.102726 submit/tizen/20200316.025918
authorDongkyun Son <dongkyun.s@samsung.com>
Fri, 21 Feb 2020 05:38:48 +0000 (14:38 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Fri, 21 Feb 2020 05:38:48 +0000 (14:38 +0900)
Change-Id: I9bc4bf027e5cb2ae8a20740691782fd21b16c169
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
packaging/swap-probe.spec

index 23bc197..77b255a 100644 (file)
@@ -121,6 +121,12 @@ This tool will be installed in target
 
 %build
 
+%ifarch %ix86
+RPM_OPT_FLAGS="$(echo $RPM_OPT_FLAGS | sed 's/-fstack-protector-strong/-fstack-protector/g')"
+export CFLAGS="$RPM_OPT_FLAGS"
+export CXXFLAGS="$RPM_OPT_FLAGS"
+%endif
+
 pushd scripts
 echo "__tizen_product_tv__="%{?TIZEN_PRODUCT_TV} >> dyn_vars
 popd