From 54dc4e5a035f0a83a1d99ac4c0932736b71db9f6 Mon Sep 17 00:00:00 2001 From: Tianqi Chen Date: Fri, 3 Jan 2020 12:28:49 -0800 Subject: [PATCH] [CMAKE] Remove unecessary rdynamic (#4613) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd84e67fce5a..7158a8de7ada 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,8 +101,8 @@ if(MSVC) else(MSVC) if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") message("Build in Debug mode") - set(CMAKE_C_FLAGS "-O0 -g -Wall -fPIC ${CMAKE_C_FLAGS} -rdynamic") - set(CMAKE_CXX_FLAGS "-O0 -g -Wall -fPIC ${CMAKE_CXX_FLAGS} -rdynamic") + set(CMAKE_C_FLAGS "-O0 -g -Wall -fPIC ${CMAKE_C_FLAGS}") + set(CMAKE_CXX_FLAGS "-O0 -g -Wall -fPIC ${CMAKE_CXX_FLAGS}") else() set(CMAKE_C_FLAGS "-O2 -Wall -fPIC ${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "-O2 -Wall -fPIC ${CMAKE_CXX_FLAGS}")