summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEden Lee <bw1212.lee@samsung.com>2018-05-23 16:58:58 +0900
committerEden Lee <bw1212.lee@samsung.com>2018-05-23 17:03:23 +0900
commitbf635a6d832fa8ba3e4815074a3550be850541e9 (patch)
tree83a9b54485e90bcbdc5cc4bc0445894f24043085
parent01cf8aad52e824f88019b796e2f90042e6905f83 (diff)
downloadcoreclr-bf635a6d832fa8ba3e4815074a3550be850541e9.tar.gz
coreclr-bf635a6d832fa8ba3e4815074a3550be850541e9.tar.bz2
coreclr-bf635a6d832fa8ba3e4815074a3550be850541e9.zip
Change-Id: I4af2b9f7b30a8a64c78cbf414ce2574775f5324e
-rw-r--r--packaging/coreclr.spec14
1 files changed, 4 insertions, 10 deletions
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec
index 66bb4711d2..5e43f26bdc 100644
--- a/packaging/coreclr.spec
+++ b/packaging/coreclr.spec
@@ -347,7 +347,6 @@ export CLANG_NO_LIBDIR_SUFFIX=1
%define _buildtype %{dotnet_buildtype}
%define _reldir bin/Product/Linux.%{_barch}.%{_buildtype}
-%define _clrdebug 0
%define _paldebug 0
%if 0%{support_test}
@@ -356,15 +355,6 @@ export CLANG_NO_LIBDIR_SUFFIX=1
%define testopt 'skiptests'
%endif
-%if 0%{_clrdebug}
-export COMPlus_LogEnable=1
-export COMPlus_LogLevel=10
-export COMPlus_LogToFile=1
-export COMPlus_LogFile="clr.log"
-%else
-export COMPlus_LogEnable=0
-%endif
-
%if 0%{_paldebug}
export PAL_DBG_CHANNELS="+all.all"
export PAL_DBG_CHANNELS="+PAL.TRACE:-FILE.ERROR"
@@ -377,7 +367,11 @@ export PAL_DBG_CHANNELS=""
# for armoring request from PM group
# FIXME1: If you find better solution like CMAKE_CXX_FLAGS, please fix this
# FIXME2: This patch does not work on non-arm archtecture
+%if %{dotnet_buildtype} == "Release"
export CXXFLAGS+="-fstack-protector-strong -D_FORTIFY_SOURCE=2"
+%else
+export CXXFLAGS+="-fstack-protector-strong"
+%endif
%endif
%if 0%{skipmscorlib}