summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorEden Lee <bw1212.lee@samsung.com>2018-05-23 16:58:58 +0900
committerAlexander Soldatov <soldatov.a@samsung.com>2018-06-18 13:56:15 +0300
commitbe3aaf0c0219d8979351ddfef4c61c96ffa42762 (patch)
tree1672af1886256aab081e21a53fbca50cc0c14f65 /packaging
parent0cc3d23d207a9276d9caa42bdcb51cb7dfa42403 (diff)
downloadcoreclr-be3aaf0c0219d8979351ddfef4c61c96ffa42762.tar.gz
coreclr-be3aaf0c0219d8979351ddfef4c61c96ffa42762.tar.bz2
coreclr-be3aaf0c0219d8979351ddfef4c61c96ffa42762.zip
Fix build break in Debug build type
Change-Id: I4af2b9f7b30a8a64c78cbf414ce2574775f5324e
Diffstat (limited to 'packaging')
-rw-r--r--packaging/coreclr.spec14
1 files changed, 4 insertions, 10 deletions
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec
index 8b14457759..040da30b72 100644
--- a/packaging/coreclr.spec
+++ b/packaging/coreclr.spec
@@ -357,7 +357,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}
@@ -366,15 +365,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"
@@ -387,7 +377,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}